mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
5b489ca30f
This removes the caret as a shorthand for redirecting stderr. Note that stderr may be redirected to a file via 2>/some/path... and may be redirected with a pipe via 2>|. Fixes #4394
17 lines
372 B
Fish
Executable file
17 lines
372 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
#
|
|
# Generate output for a test script
|
|
#
|
|
# It is important that you verify that the generated
|
|
# output is correct!
|
|
#
|
|
|
|
for i in $argv
|
|
set template_out (basename $i .in).out
|
|
set template_err (basename $i .in).err
|
|
set template_status (basename $i .in).status
|
|
|
|
fish <$i >$template_out 2>$template_err
|
|
echo $status >$template_status
|
|
end
|