3 # $DragonFly: src/usr.bin/make/tests/variables/t2/test.sh,v 1.2 2005/03/03 19:13:00 okumoto Exp $
9 cat > $WORK_BASE/Makefile << "_EOF_"
16 ORANGE = Variable Variable Variable Variable
20 @echo "New: ${FILES:S/map/Map/}"
21 @echo "New: ${FILES:S/main/&_wrapper/}"
23 @echo "${ORANGE:S/Variable/Integer/g}"
24 @echo "${ORANGE:S/Variable/Integer/}"
26 @echo "${APPLE:S/A/FOO/g}"
27 @echo "${APPLE:S/B/BAR/g}"
28 @echo "${APPLE:S/C/BAZ/g}"
30 @echo "${APPLE:S/^A/FOO/g}"
31 @echo "${APPLE:S/^B/BAR/g}"
32 @echo "${APPLE:S/^C/BAZ/g}"
34 @echo "${APPLE:S/A$/FOO/g}"
35 @echo "${APPLE:S/B$/BAR/g}"
36 @echo "${APPLE:S/C$/BAZ/g}"
42 echo "Variable expansion with M modifier"