Help us shape the future of Go! Take the 2026 Go Developer Survey

shellcompat

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package shellcompat provides the bounded, model-facing Shell portability diagnostic. It is internal to the engine: only the Shell tool implementations may share this execution-compatibility helper. It does not participate in authorization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(shellPath, command string) error

Check returns bounded POSIX portability feedback for a model-facing command. It is exported only within the engine's Go internal boundary. It is deliberately neither an authorization decision nor a shell emulator: it only recognizes selected Bash AST nodes when the trusted configured shell path names sh or dash. Parse failures and every other shell basename leave the exact command bytes for the runner unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL