add tests for the not-quite-fixed #5812

This commit is contained in:
David Adam 2019-04-18 21:12:25 +08:00
parent 8ca2641857
commit d0735882a3
2 changed files with 6 additions and 1 deletions

View File

@ -39,3 +39,6 @@ fish: Unexpected '}' for unopened brace expansion
echo {}} echo {}}
^ ^
fish: Command substitutions not allowed
command (asd)
^

View File

@ -153,4 +153,6 @@ logmsg Test fatal syntax errors
../test/root/bin/fish -c 'echo $,foo' ../test/root/bin/fish -c 'echo $,foo'
../test/root/bin/fish -c 'echo {' ../test/root/bin/fish -c 'echo {'
../test/root/bin/fish -c 'echo {}}' ../test/root/bin/fish -c 'echo {}}'
true # The output for this is wrong in non-interactive mode and will need fixing when #5812 is fixed
../test/root/bin/fish -c 'command (asd)'
true