Skip to main content

Module tokenize

Module tokenize 

Source

Functions§

base_command
Extract the first real command word, skipping leading KEY=VALUE assignments.
command_characteristics
Analyze a command segment for security-relevant properties.
env_vars
Extract leading KEY=VALUE pairs from a command string.
find_base_command
Extract the base command name from a word list, skipping env assignments and stripping path prefixes.
parse_command
Parse a command string into structured components with arguments in source order.
tokenize
Tokenize a command segment into words using shlex (POSIX word splitting).