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

shellpattern

package
v0.92.7 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package shellpattern defines lexical shell patterns blocked by the safe-output harness. These are policy checks, not shell execution analysis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expansion

type Expansion struct {
	Start       int
	End         int
	Description string
}

func FirstUnsafeExpansion

func FirstUnsafeExpansion(script string) (Expansion, bool)

FirstUnsafeExpansion preserves the compiler's lexical harness policy, including matches in quoted text and comments. Arithmetic expansion is allowed; nested command substitutions inside it are still checked.

Jump to

Keyboard shortcuts

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