2021-09-28 15:15:33 +00:00
|
|
|
#RUN: %fish -C 'set -g fish %fish' %s
|
|
|
|
|
|
|
|
# A $status used as a command should not impact the location of other errors.
|
|
|
|
echo 'echo foo | exec grep # this exec is not allowed!
|
|
|
|
|
|
|
|
$status
|
|
|
|
|
|
|
|
# The error might be found here!' | $fish 2>| string replace -r '(.*)' '<$1>'
|
|
|
|
|
|
|
|
# CHECK: <fish: The 'exec' command can not be used in a pipeline>
|
|
|
|
# CHECK: <echo foo | exec grep # this exec is not allowed!>
|
|
|
|
# CHECK: < ^>
|
2021-09-28 15:59:59 +00:00
|
|
|
|
|
|
|
echo '
|
|
|
|
|
|
|
|
(true one)
|
|
|
|
(true two)
|
|
|
|
|
|
|
|
# more things
|
|
|
|
' | $fish 2>| string replace -r '(.*)' '<$1>'
|
|
|
|
|
|
|
|
# CHECK: <fish: Command substitutions not allowed>
|
|
|
|
# CHECK: <(true one)>
|
|
|
|
# CHECK: <^>
|
2021-12-04 13:41:54 +00:00
|
|
|
|
|
|
|
$fish -c 'echo "unfinished "(subshell' 2>| string replace -r '.*' '<$0>'
|
|
|
|
# CHECK: <fish: Unexpected end of string, expecting ')'>
|
|
|
|
# CHECK: <echo "unfinished "(subshell>
|
|
|
|
# CHECK: < ^>
|
|
|
|
|
|
|
|
$fish -c 'echo "unfinished "$(subshell' 2>| string replace -r '.*' '<$0>'
|
|
|
|
# CHECK: <fish: Unexpected end of string, expecting ')'>
|
|
|
|
# CHECK: <echo "unfinished "$(subshell>
|
|
|
|
# CHECK: < ^>
|