0007-iflag.sh (284B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT HUP TERM 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat <<EOF > $tmp2 9 no-valid-program 10 sh: no-valid-program: not found 11 -i 12 EOF 13 14 MAKEFLAGS=-i scc-make -f test.mk error print-makeflags 2>&1 | 15 sed 's/sh:.*: *no-/sh: no-/' > $tmp1 2>&1 16 17 diff $tmp1 $tmp2