Add length to the parse_util syntax errors

This commit is contained in:
Fabian Boehm
2022-08-12 16:53:31 +02:00
parent 4b921cbc08
commit 232ca25ff9
5 changed files with 31 additions and 30 deletions

View File

@@ -82,7 +82,7 @@ and echo matched
$fish --no-config -c 'echo notprinted; echo foo | exec true; echo banana'
# CHECKERR: fish: The 'exec' command can not be used in a pipeline
# CHECKERR: echo notprinted; echo foo | exec true; echo banana
# CHECKERR: ^
# CHECKERR: ^~~~~~~~^
# Running multiple command lists continues even if one has a syntax error.
$fish --no-config -c 'echo $$ oh no syntax error' -c 'echo this works'