From d0735882a335fb740dd00ca76332c801a2d85a4f Mon Sep 17 00:00:00 2001 From: David Adam Date: Thu, 18 Apr 2019 21:12:25 +0800 Subject: [PATCH] add tests for the not-quite-fixed #5812 --- tests/expansion.err | 3 +++ tests/expansion.in | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/expansion.err b/tests/expansion.err index d898fab04..678e91d37 100644 --- a/tests/expansion.err +++ b/tests/expansion.err @@ -39,3 +39,6 @@ fish: Unexpected '}' for unopened brace expansion echo {}} ^ +fish: Command substitutions not allowed +command (asd) +^ diff --git a/tests/expansion.in b/tests/expansion.in index dc7bf48ef..e36c8ff0f 100644 --- a/tests/expansion.in +++ b/tests/expansion.in @@ -153,4 +153,6 @@ logmsg Test fatal syntax errors ../test/root/bin/fish -c 'echo $,foo' ../test/root/bin/fish -c 'echo {' ../test/root/bin/fish -c 'echo {}}' -true \ No newline at end of file +# 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