colis-anr / morbig

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

Morbig accepts redirections on two lines #90

Closed Niols closed 5 years ago

Niols commented 5 years ago

Morbig accepts the following script to be valid:

foo >
bar

(and just the same as foo > bar.) I think this is wrong wrt the standard. Dash refuses that scripts, saying "Syntax error: newline unexpected".