18 lines
674 B
Plaintext
18 lines
674 B
Plaintext
#
|
|
# Test file to exercise the various variable substitutions
|
|
#
|
|
A=sbr.cmds.c fish.c 'a$$a'
|
|
.BEGIN:
|
|
: If any of these aborts, check VarSubstitute, VarModify and VarParse
|
|
a :
|
|
test "$(A:S/.c$/.o/)" = "sbr.cmds.o fish.c 'a$a'"
|
|
test "$(A:S/.c$/.o/g)" = "sbr.cmds.o fish.o 'a$a'"
|
|
test "$(A:S/^/x/)" = "xsbr.cmds.c fish.c 'a$a'"
|
|
test "$(A:S/^/x/g)" = "xsbr.cmds.c xfish.c x'a$a'"
|
|
test "$(A:S/h.c$/&o/)" = "sbr.cmds.c fish.co 'a$a'"
|
|
test "$(A:S/^fish.c$/dog.c/)" = "sbr.cmds.c dog.c 'a$a'"
|
|
test "$(A:S/a\$/b\$/)" = "sbr.cmds.c fish.c 'b$a'"
|
|
test "$(A:S/fish.c//)" = "sbr.cmds.c 'a$a'"
|
|
test "$(A:fish.c=)" = "sbr.cmds.c 'a$a'"
|
|
test "$(A:.c=.o)" = "sbr.cmds.o fish.o 'a$a'"
|