aboutsummaryrefslogtreecommitdiff
path: root/tests/subst.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/subst.at')
-rw-r--r--tests/subst.at15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/subst.at b/tests/subst.at
index 40f5d85f1da2..8056f74a7b18 100644
--- a/tests/subst.at
+++ b/tests/subst.at
@@ -1,4 +1,5 @@
-# Optional substitutions
+AT_BANNER([Optional substitutions])
+
AT_SETUP([Command substitution])
@@ -14,6 +15,7 @@ set csubstnonl
echo `echo 1; \\
echo 2`
]])
+
AT_CHECK([tcsh -f backq.csh], 1,
[4
2
@@ -23,7 +25,7 @@ AT_CHECK([tcsh -f backq.csh], 1,
[ : Command not found.
])
-AT_CLEANUP
+AT_CLEANUP()
AT_SETUP([Filename substitution])
@@ -31,7 +33,7 @@ AT_SETUP([Filename substitution])
AT_DATA([files.csh],
[[mkdir d
cd d
-touch foo baz bar .quux '*'
+touch Fiz foo baz bar .quux '*'
echo *a* *[ox] [f.]* .q* ./*[ox] ./[f.]* ./.q* \*
echo [a-g]* [^b]* ^b?r
echo { ba{z,r} } {}
@@ -41,9 +43,10 @@ echo nothing*
set noglob
echo foo* ab{c,d} ^fo*
]])
+
AT_CHECK([tcsh -f files.csh], ,
[bar baz foo foo .quux ./foo ./foo ./.quux *
-bar baz foo * foo * baz foo
+bar baz foo * Fiz foo * Fiz baz foo
{ baz bar } {}
foo
nothing*
@@ -80,7 +83,7 @@ echo "echo ~$(id -un)/foo; echo \"\$HOME/foo\"" | tcsh -f | uniq dnl
], , [1
])
-AT_CLEANUP
+AT_CLEANUP()
AT_SETUP([Directory stack substitution])
@@ -115,4 +118,4 @@ Directory stack not that deep.
2
])
-AT_CLEANUP
+AT_CLEANUP()