File: gen_output.fish

package info (click to toggle)
fish 1.23.0-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,416 kB
  • ctags: 2,503
  • sloc: ansic: 35,998; sh: 2,818; makefile: 566
file content (17 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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