Expand description
Quote-aware shell command tokenizer.
Splits a command string into tokens respecting single quotes, double quotes,
and backslash escapes. This prevents false-positive security rejections when
metacharacters appear inside quoted arguments (e.g., echo 'hello;world').
Structs§
- Annotated
Char - A character annotated with its quoting context.
- Shell
Token - A parsed shell token.
Enums§
- Quote
Context - Quoting context for a character in a shell token.
Functions§
- tokenize
- Tokenize a shell command string into tokens, respecting quoting rules.
- tokenize_
annotated - Tokenize and return annotated characters per token for policy evaluation.