parse-shlex ( string -- tokens )
Shell-like lexical analysis

Next:shlex-split ( string comments? posix? -- tokens )


Vocabulary
shlex

Inputs
stringa string


Outputs
tokensan array


Word description
Splits a command string using Python shlex.split defaults: POSIX mode with comments disabled. Quotes are removed, adjacent quoted and unquoted pieces form one token, and quoted empty arguments are preserved. Only space, tab, carriage return and newline delimit tokens.

Definition

: parse-shlex ( string -- tokens ) f t shlex-split ;