mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
49c5f96470
Bare set overwrites a global/universal variable if it exists.
17 lines
381 B
Fish
Executable file
17 lines
381 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 -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
|