Commit Graph

12 Commits

Author SHA1 Message Date
jtc 9659258f38 Removed code that checked if arg was a unary operator when test is called
with only one argument.  It's not a syntax error --- it's a special case.
1994-06-29 22:10:16 +00:00
cgd e54bc987b5 fix syntax error when only have one arg. from Jarle Greipsland 1994-04-10 05:37:11 +00:00
cgd cc288c2f3b add support for 'test -h' a la SunOS 1994-02-19 06:28:59 +00:00
cgd 74427b6539 fix from Andrew Moore <alm@netcom.com> to fix test's handling of
(non-negated) "-a" and "-o".
1993-10-26 01:11:28 +00:00
mycroft 3030415fcf From alm:
Added and/or operator test to POSIX special case processing, so now:
$ test ! "abc" -o "abc"
evaluates to true.

The correct fix is probably to yank the superfluous special case code, but
I don't have time to verify the correctness of the result.
1993-09-23 22:49:40 +00:00
mycroft 831bfe48bd Put back RCS identifier. 1993-09-23 22:47:45 +00:00
alm 22e4414792 test "0 " -eq 0 now evaluates to true.
It also does range checking.  These override J.T.'s patches.
1993-09-15 04:35:53 +00:00
jtc f77a141a60 Ignore leading whitespace and handle `-' and `+' for operands of integer
comparisions.
1993-09-08 00:46:55 +00:00
alm 4eb2169336 /bin/test " 5" -eq 5 now evaluates to true, rather than return an error.
/bin/test "5 a" -eq 5 still correclty returns an error.
1993-09-08 00:10:06 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd 670dcac163 get the [ ! "" ] case right. 1993-06-15 06:22:41 +00:00
glass e5ac8e1e2a new 'test' from ftp.uu.net:/systems/unix/bsd-sources, got rid of GNU thing 1993-04-26 23:30:42 +00:00