mrsh icon indicating copy to clipboard operation
mrsh copied to clipboard

Interactive shell doesn't accept multi-line subshells/brace groups

Open emersion opened this issue 6 years ago • 1 comments

$ (
build/mrsh:1:1: syntax error: expected a compound list
$ ( echo a
build/mrsh:1:1: syntax error: expected ')'
$ {
build/mrsh:1:1: syntax error: expected a compound list

All of these should allow the user to write contiuation lines.

emersion avatar Jun 15 '19 13:06 emersion

$ while true
build/mrsh:1:1: syntax error: expected 'do'
$ if true
build/mrsh:1:1: syntax error: expected 'then'

We should detect all "expected XXX, got EOF" cases.

emersion avatar Aug 31 '19 19:08 emersion