summaryrefslogtreecommitdiffstats
path: root/bin/test/TEST.csh
diff options
context:
space:
mode:
authorcsgr <csgr@FreeBSD.org>1994-09-11 13:57:31 +0000
committercsgr <csgr@FreeBSD.org>1994-09-11 13:57:31 +0000
commitb819d56caf66a2bbb416cd1a946e286daf646469 (patch)
treeca86369a9fb0914094e68aeca4fc515a587bf285 /bin/test/TEST.csh
parent15c2fa33ec4181b8477c00ae0052d90c04091039 (diff)
downloadFreeBSD-src-b819d56caf66a2bbb416cd1a946e286daf646469.zip
FreeBSD-src-b819d56caf66a2bbb416cd1a946e286daf646469.tar.gz
- handle signs on integers properly,
- make sure error messages for bad integers are moderately sensible - handle test ! "abc" -o "abc" (This should evaluate to true) (and similar cases) ie: and/or operator test added to POSIX special case processing. - more test cases added. Based on: Work done on 1.x's test(1) by Andrew Moore and Adam David.
Diffstat (limited to 'bin/test/TEST.csh')
-rw-r--r--bin/test/TEST.csh14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/test/TEST.csh b/bin/test/TEST.csh
index e5b9652..e36ec84 100644
--- a/bin/test/TEST.csh
+++ b/bin/test/TEST.csh
@@ -135,3 +135,17 @@ echo 't 700 -le 1000 -a -n "1" -a "20" = "20"'
t 700 -le 1000 -a -n "1" -a "20" = "20"
echo 't ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)'
t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
+
+echo 't -5 -eq 5'
+t -5 -eq 5
+
+
+echo 't foo -a ""'
+t foo -a ""
+echo 't "" -a foo'
+t "" -a foo
+echo 't "" -a ""'
+t "" -a ""
+echo 't "" -o ""'
+t "" -o ""
+
OpenPOWER on IntegriCloud