You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Err, it's probably more a tree than a flat list. A token can contain:
Unquoted strings
Quoted strings (" or ')
Candidates for parameter expansion (${expression} or $variable)
Candidates for command substitution ($(command) or `command`)
Candidates for arithmetic expansion ($((expression)))
Examples:
echo"hey 'there'"# hey 'there'echo'hey "there"'# hey "there"echo"hey $(echo "there")"# hey thereecho`echo \`echo hey\``# heyecho$(echo $(echo hey `echo there $(echo how are you)`))# hey there how are youecho$(($x-1))echo${x:-$(ls)}# ls is executed only if x is null or unset
emersion
changed the title
Correctly handle quoting
Parse quotes and candidates for expansion/substitution
Aug 1, 2018
emersion
changed the title
Parse quotes and candidates for expansion/substitution
Parse quotes and candidates for expansion/substitution as a tree
Aug 1, 2018
That means, don't unquote when parsing. That probably means: keep a list of {unquoted, quoted} fragments when parsing.
The text was updated successfully, but these errors were encountered: