#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: # CHECK: # CHECK: < ^> echo ' (true one) (true two) # more things ' | $fish 2>| string replace -r '(.*)' '<$1>' # CHECK: # CHECK: <(true one)> # CHECK: <^>