colis-anr / morbig

A static parser for POSIX Shell
Other
190 stars 8 forks source link

alias expansion does not always show in word components #50

Closed treinen closed 5 years ago

treinen commented 5 years ago

When parsing the following file

alias x='true '
x

I obtain (only the simgle command corresponding to the second line shown)

"SimpleCommand_CmdName",
              [
                "CmdName_Word",
                [ "Word", "'true '", [ [ "WordLiteral", "x" ] ] ]
              ]

The x in the list of word components should have been replaced.