mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 00:04:31 +08:00
17 lines
352 B
Fish
17 lines
352 B
Fish
|
#!/usr/bin/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 ^$template_err
|
||
|
echo $status >$template_status
|
||
|
end
|