Closed aureliojargas closed 5 years ago
Fixed by the new sedparse
parser, see #52.
$ ./sedsed.py s
ERROR: sedparse: -e expression #1, char 2: unterminated `s' command
$ ./sedsed.py s/
ERROR: sedparse: -e expression #1, char 2: unterminated `s' command
$ ./sedsed.py s/foo
ERROR: sedparse: -e expression #1, char 5: unterminated `s' command
$ ./sedsed.py s/foo/
ERROR: sedparse: -e expression #1, char 6: unterminated `s' command
$ ./sedsed.py s/foo/bar
ERROR: sedparse: -e expression #1, char 9: unterminated `s' command
$
For example, a single
s
breaks the parser:On the other hand, other forms of incomplete
s
commands go undetected:The same applies for incomplete
y
commands.