0096-escape.sh (212B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat > $tmp1 <<EOF 9 MACRO=hello 10 EOF 11 12 13 scc make -f- <<'EOF' > $tmp2 2>&1 14 MACRO = $$(echo hello) 15 16 all: 17 @echo MACRO=$(MACRO) 18 EOF