History log of /freebsd-10.1-release/bin/test/test.1
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 251211 31-May-2013 jilles

test(1): Add information about replacing -nt/-ot.


# 251209 31-May-2013 jilles

test(1): List non-standard primaries.


# 251208 31-May-2013 jilles

test: Remove -ntXY and -otXY primaries.

This reverts commit r247274.

As maintainer of sh, I disapprove of this feature addition.

It is too specific and can be done without easily using find(1) or stat(1).
I will add some hints to the test(1) man page shortly.

In general, FreeBSD sh is not the place to invent new shell language
features. This is how it has been maintained and adding features randomly
does not work with that.

The new syntax (e.g. [ FILE1 -ntca FILE2 ]) looks cryptic to me.


# 247274 25-Feb-2013 peterj

Enhance test(1) by adding provision to compare any combination of the
access, birth, change and modify times of two files, instead of only
being able to compare modify times. The builtin test in sh(1) will
automagically acquire the same expansion.

Approved by: grog
MFC after: 2 weeks


# 244734 27-Dec-2012 jilles

test(1): Document == alias for =.

Reviewed by: gjb
Requested by: gjb
MFC after: 1 week


# 235400 13-May-2012 joel

Minor mdoc nits.


# 212463 11-Sep-2010 brucec

Revert changes of 'assure' to 'ensure' made in r211936.

Approved by: rrs (mentor)


# 212419 10-Sep-2010 jilles

test(1): Fix markup, ( and ) must be separate arguments so leave spaces.

MFC after: 1 week


# 212418 10-Sep-2010 jilles

test(1): Clarify grammar ambiguity and -a/-o vs shell &&/||.


# 211936 28-Aug-2010 brucec

Fix incorrect usage of 'assure' and 'insure'.

Approved by: rrs (mentor)


# 186849 06-Jan-2009 danger

- rename the RETURN VALUES section to EXIT STATUS
- not bumping a date as this is not a real content change

Approved by: ru
MFC after: 3 days


# 165202 14-Dec-2006 ru

Simplify some markup.


# 160848 31-Jul-2006 yar

Granting the amount of misunderstanding the last change received,
extend it with an example to clarify the point.


# 160760 27-Jul-2006 yar

Document that both sides of -a or -o are always evaluated. This
"feature" doesn't seem to be in the standards or elsewhere, and
it is against what we are used to in C and sh(1), so put the
paragraph under BUGS.

Pointed out by: dougb
MFC after: 3 days


# 139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


# 131512 02-Jul-2004 tjr

Clarify: test compares strings by binary value, not "ASCII value".


# 131484 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 130190 07-Jun-2004 yar

Remove a duplicated description of the test for the null string.

MFC after: 3 days


# 130189 07-Jun-2004 yar

Describe how test(1) will evaluate its expressions for a symlink.

Inspired by: SUSv3
MFC after: 1 week


# 127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 86505 17-Nov-2001 knu

Make test(1) a builtin command of our sh(1) for efficiency. The
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)


# 82661 31-Aug-2001 dd

The file_descriptor argument to -t isn't optional, so don't mark it up so.


# 81251 07-Aug-2001 ru

mdoc(7) police:

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.


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 68935 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


# 68875 18-Nov-2000 ru

mdoc(7) police: now that Nm macro accepts punctuation characters
as argument, unbreak this page by escaping the `[' character.

Noticed by: sheldonh


# 57663 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 49884 16-Aug-1999 sheldonh

Replace our test(1) with NetBSD's pdksh-derived version. The code is
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


# 41915 18-Dec-1998 jkoshy

Add cross-references to test(1) and expr(1) respectively.

PR: docs/9111
Submitted by: Josh Gilliam <josh@quick.net>


# 38914 07-Sep-1998 cracauer

Add -S flag to test for sockets.
PR: bin/7507
Reviewed by: I tested the patch
Submitted by: Stefan `Sec` Zehl sec@42.org


# 36152 18-May-1998 charnier

Correct use of .Nm. Add rcsid.


# 26367 02-Jun-1997 charnier

Typo fix.


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 3044 24-Sep-1994 dg

Added $Id$


# 1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources