Commit Graph

49 Commits

Author SHA1 Message Date
simonb dec70f4a29 KNF, use NULL instead of (type *)0. 2005-02-10 06:56:55 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
wiz 14dfaa4b03 New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
wiz 10610e5a31 __STDC__ is always defined on NetBSD. 2002-05-25 23:12:16 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz 3ebcdc5e43 Whitespace nits. 2001-12-20 19:31:48 +00:00
wiz 4b238d257d Properly quote `[' as macro argument. 2001-10-17 21:14:45 +00:00
wiz d3d81c4e84 Some KNF fixes by Petri Koistinen and me. 2001-09-16 19:03:26 +00:00
wiz 8cfb973b8e ANSIfy and slight KNF. Mostly #13594 by Petri Koistinen. 2001-07-30 10:17:41 +00:00
kleink 2caf6aacdd For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
2000-09-04 07:30:07 +00:00
christos e2e5d7bd40 - Enable test to be a shell builtin
- KNF
- Fix bug where test without arguments could access invalid memory
2000-04-09 23:24:59 +00:00
abs 98b54453f0 Remove duplicate 'string' / 's1' entry 1999-12-17 13:16:44 +00:00
kleink 900ca60345 Reverse the advice given to (now) prefer -h over -L; the former is defined in
1003.2bD3 and SVID4 and thus supposedly more portable.
1999-08-22 14:06:59 +00:00
kleink e80c883c9d Operator precedence consistency; from "Andrew_L. Moore" <alm@SlewSys.Org>
in PR bin/7015.
1999-04-05 09:48:38 +00:00
garbled 1e1533cde9 the '[' wasn't being displayed properly as a command. Thanks to Charles
for the fix.
1999-03-09 07:05:33 +00:00
christos 9908eacfd6 char -> unsigned char 1998-11-04 20:12:12 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mrg 6be07a674c add missing .Nm calls and MLINKS. from spz@serpens.swb.de 1997-11-12 00:47:32 +00:00
mycroft 15de1c9fd2 Use S_IS*(), not S_IF*. 1997-10-19 17:54:18 +00:00
mycroft c04eacd743 Fix format of description line. 1997-10-09 07:37:09 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos e028842ec8 Fix compiler warnings.
Add WARNS=1
1997-07-20 21:28:26 +00:00
mikel a18d01ced0 add SYNOPSIS line for [; fixes PR bin/3705 1997-06-05 06:39:59 +00:00
tls 3e254367af kill use of register 1997-01-09 16:44:06 +00:00
pk 3c7b56e9b2 Note compatibility `-h' op. (from Rob Windsor; PR#1740) 1996-01-05 12:39:30 +00:00
cgd a86f3aeda3 clean up Id's, and such. reorganize man page slight to match lite's org. 1995-03-21 07:03:50 +00:00
cgd 2c405cf3ed from jtc: insure that 3 and 4 argument special cases work properly. 1994-07-07 19:08:11 +00:00
mycroft 54718335ed Clean up deleted files. 1994-06-30 05:12:42 +00:00
jtc 008c3a98a0 Replaced test with simpler, more feature rich, version derived from pdksh. 1994-06-30 05:12:29 +00:00
jtc 61c805aef5 The file_descriptor argument to the -t primary is no longer optional. 1994-06-29 22:26:50 +00:00
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 62ed4478be whack mkops so it 'understands' and/or ops 1994-02-19 06:09:03 +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 210cab4541 Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:18:41 +00:00
mycroft 93714b3c29 operators.c 1993-08-02 17:15:58 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd 670dcac163 get the [ ! "" ] case right. 1993-06-15 06:22:41 +00:00
glass b029751cb6 ugh. i was right after all. 1993-04-29 06:28:39 +00:00
glass 39ec5a0745 bostic was right, and i was wrong.. boo. 1993-04-27 17:09:01 +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