fish-shell/tests/gen_output.fish

18 lines
381 B
Fish
Raw Normal View History

#!/usr/bin/env fish
#
# Generate output for a test script
#
2010-09-18 10:18:26 +08:00
# It is important that you verify that the generated
# output is correct!
#
for i in $argv
set -l template_out (basename $i .in).out
set -l template_err (basename $i .in).err
set -l template_status (basename $i .in).status
fish <$i >$template_out 2>$template_err
echo $status >$template_status
end