summaryrefslogtreecommitdiffstats
path: root/bin/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix style bugs I found, and add a comment.knu2001-11-191-10/+11
|
* Oops sorry, forgot to add a #include.knu2001-11-191-0/+1
|
* - Do not reference argv[1] if no argument is given.knu2001-11-191-7/+34
| | | | | | Reported by: brian - Call error() instead of errx() if compiled as sh(1) builtin.
* Make test(1) a builtin command of our sh(1) for efficiency. Theknu2001-11-172-0/+13
| | | | | | | | | | | binary size increase is 3,784 bytes (about 0.6%). I don't drop the printf builtin while I'm here because some /etc/rc.* scripts seem to use it before mounting /usr where printf(1) resides. Reviewed by: arch (sheldonh) Inspired by: NetBSD, ksh Clued by: ume (on how the printf builtin is used)
* The file_descriptor argument to -t isn't optional, so don't mark it up so.dd2001-08-311-1/+1
|
* mdoc(7) police:ru2001-08-071-1/+1
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Remove whitespace at EOL.dd2001-07-151-6/+6
|
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-15/+19
| | | | MFC After: 1 week
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-6/+6
|
* mdoc(7) police: now that Nm macro accepts punctuation charactersru2000-11-181-1/+1
| | | | | | as argument, unbreak this page by escaping the `[' character. Noticed by: sheldonh
* Add support for 64bit integer comparisons.se2000-07-101-6/+50
|
* Remove test for block device.kris2000-05-071-1/+0
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Take into account the fact that "[" may be called with a path,sheldonh1999-12-281-1/+6
| | | | | | | | for example "/bin/[". Reported by: Vlad Skvortsov <vss@ulstu.ru> Reported by: Peter Jeremy <peter.jeremy@alcatel.com.au> Message-Id: 99Dec27.111307est.40321@border.alcanet.com.au
* $Id$ -> $FreeBSD$peter1999-08-276-6/+6
|
* Make the comments nice, short-but-sweet XXX format.green1999-08-241-10/+3
| | | | Submitted by: sheldonh
* Make a comment I added a bit nicer.green1999-08-221-2/+3
|
* Finally: fix test -x as completely as possible.green1999-08-201-7/+17
| | | | | Reviewed by: bde Reworked by: bde
* The new test(1) did not use access() correctly. I don't know why, sincegreen1999-08-181-2/+7
| | | | | | | | supposedly it's ksh-derived, and it's not broken in pdksh. I've added a test for test running as root: if testing for -x, the file must be mode & 0111 to get "success", rather than just existant. Reviewed by: chris
* Replace our test(1) with NetBSD's pdksh-derived version. The code issheldonh1999-08-165-785/+465
| | | | | | | | | | | | significantly easier to read and extend and offers a few new tests. A few style changes taken from style(9) and OpenBSD, as well as whitespace cleanups. This change was discussed on freebsd-committers and freebsd-hackers and met with approval from at least des, eivind and brian. PR: 13091 Obtained from: NetBSD
* Minor style fix - change 'if(!*v)' to 'if (!*v)'chris1999-08-141-2/+2
|
* Various spelling/formatting changes.kris1999-05-081-2/+2
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Add cross-references to test(1) and expr(1) respectively.jkoshy1998-12-181-1/+4
| | | | | PR: docs/9111 Submitted by: Josh Gilliam <josh@quick.net>
* Add -S flag to test for sockets.cracauer1998-09-074-17/+28
| | | | | | PR: bin/7507 Reviewed by: I tested the patch Submitted by: Stefan `Sec` Zehl sec@42.org
* Correct use of .Nm. Add rcsid.charnier1998-05-183-13/+17
|
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.eivind1997-12-101-3/+2
| | | | | Reorder includes to be alphabetical some places since I already was in here.
* Typo fix.charnier1997-06-021-2/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-228-8/+8
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-148-8/+8
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* add some string examples, eg. test "" -o ""wosch1996-12-281-12/+16
|
* Fix handling of -o and -a operators in the 3 argument case.steve1996-12-251-2/+2
| | | | Submitted by: Tom Rush <tarush@mindspring.com>
* -Wall cleaning.steve1996-12-142-5/+5
|
* sync copyright with /usr/share/examples/etc/bsd-style-copyrightwosch1996-08-271-2/+25
|
* Add a better TEST script. I was surprised how much can be wrongwosch1996-06-192-0/+133
| | | | with program test(1) or builtin test(1).
* err() --> errx() for non-errno related failures.joerg1996-03-111-3/+3
|
* Fix -h option:ache1995-10-281-2/+2
| | | | sense symlink even it is unresolved
* Remove trailing whitespace.rgrimes1995-05-301-6/+6
| | | | Reviewed by: phk
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-03-191-3/+3
| | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
* Fix group permissions check for group list size > 1ache1994-11-051-3/+13
| | | | Pointed by Bruce
* Fix root -w case according to manpage (-x & -r cases already accords)ache1994-11-051-4/+7
| | | | Pointed by Bruce.
* Cosmetique, missing tab/spaces after patchache1994-11-051-6/+6
|
* More complex implementation of previos superuser fixache1994-11-051-2/+10
| | | | because rw and x bit treats differently infact
* test produce wrong results for superuser, i.e. tellsache1994-11-051-2/+2
| | | | that file is unreadable when it is readable infact.
* Added $Id$dg1994-09-246-0/+8
|
* Make get_int() think that "" (null) has the integer value 0.csgr1994-09-111-0/+5
| | | | | | (Which is the same behaviour as in 1.x) The install blows up without this. Reviewed by: rgrimes
* - handle signs on integers properly,csgr1994-09-114-2/+28
| | | | | | | | | | - 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.
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-266-0/+1185
OpenPOWER on IntegriCloud