0013-print.sh (358B)
1 #!/bin/sh 2 3 set -e 4 5 tmp1=`mktemp` 6 tmp2=`mktemp` 7 8 trap "rm -f file.a $tmp1 $tmp2" 0 2 3 15 9 10 ############################################################################ 11 #print 1st member 12 13 cp master.a file.a 14 15 $EXEC scc ar -p file.a file1 > $tmp1 16 17 cat <<! > $tmp2 18 This is the first file, 19 and it should go in the 20 first position in the archive. 21 ! 22 23 cmp $tmp1 $tmp2