pablo-lamtenzan / miniShell

Implementing (most of) Bash from scracth, supports term-caps, expansion, job control and conditionals.
0 stars 0 forks source link

Lexer separators display and return issue #24

Closed pablo-lamtenzan closed 3 years ago

pablo-lamtenzan commented 3 years ago

First of all i've found little problems in the error handling of invalid expressions using separators. In all the following expression the return value and the display are invalid.

$ ls ;; exit 42 $ || exit 42 $ && exit 42 $ ls ||| exit 42 $ ls &&& exit 42

Originally posted by @pablo-lamtenzan in https://github.com/pablo-lamtenzan/miniShell/issues/21#issuecomment-737179847