ossp-pkg/shtool/test.db 1.16 -> 1.17
--- test.db 2001/04/20 19:00:02 1.16
+++ test.db 2001/06/14 21:27:14 1.17
@@ -102,6 +102,27 @@
shtool tarball -o test .
@end{tarball}
+@begin{subst}
+echo fooAfoo >foo
+echo barBbar >bar
+echo bazCbaz >baz
+shtool subst \
+ -e 's;^\(...\)\([A-Z]\)\(.*\)$;\1\2\3\2;' \
+ -e 's;^...;;' -b.original foo bar baz
+test -f foo.original
+test -f bar.original
+test -f baz.original
+test ".`cat foo.original`" = ".fooAfoo"
+test ".`cat bar.original`" = ".barBbar"
+test ".`cat baz.original`" = ".bazCbaz"
+test -f foo
+test -f bar
+test -f baz
+test ".`cat foo`" = ".AfooA"
+test ".`cat bar`" = ".BbarB"
+test ".`cat baz`" = ".CbazC"
+@end{subst}
+
@begin{guessos}
# cannot be checked easily, so just start it
shtool guessos
|
|