Skip to main content

Module shell_parser

Module shell_parser 

Source
Expand description

Enhanced shell command parser that handles &&, ||, ;, and () operators This allows virtual commands to work properly with shell operators

Structs§

ParsedArg
Parsed argument with quote information
Redirect
Redirect information
ShellParser
Shell command parser
Token
A token with its type and original value

Enums§

ParsedCommand
Types of parsed commands
TokenType
Token types for the parser

Functions§

needs_real_shell
Check if a command needs shell features we don’t handle
parse_shell_command
Parse a shell command with support for &&, ||, ;, and ()
tokenize
Tokenize a shell command string