0103-env.sh (238B)
1 #!/bin/sh 2 3 export EFLAGS=World 4 5 trap 'rm -f $tmp1 $tmp2' EXIT INT TERM HUP 6 7 tmp1=tmp1.$$ 8 tmp2=tmp2.$$ 9 10 cat > $tmp1 <<EOF 11 Hello World 12 EOF 13 14 scc make -f - <<'EOF' > $tmp2 2>&1 15 FLAGS=Hello $(EFLAGS) 16 all: 17 @echo $(FLAGS) 18 EOF 19 20 diff $tmp1 $tmp2