summaryrefslogtreecommitdiffstats
path: root/bin/test/test.1
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-05-31 22:54:20 +0000
committerjilles <jilles@FreeBSD.org>2013-05-31 22:54:20 +0000
commit47380cf857ccbe869ba42827d5027c4b41d6a7ef (patch)
treed17942ed35ffaf8b78680c77346cbe0799600bda /bin/test/test.1
parentb7eb49ed335865a47f466f72d5ce6597dde950f0 (diff)
downloadFreeBSD-src-47380cf857ccbe869ba42827d5027c4b41d6a7ef.zip
FreeBSD-src-47380cf857ccbe869ba42827d5027c4b41d6a7ef.tar.gz
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.
Diffstat (limited to 'bin/test/test.1')
-rw-r--r--bin/test/test.158
1 files changed, 4 insertions, 54 deletions
diff --git a/bin/test/test.1 b/bin/test/test.1
index 76a4a9c..885374e 100644
--- a/bin/test/test.1
+++ b/bin/test/test.1
@@ -169,65 +169,15 @@ True if
.Ar file
exists and is a socket.
.It Ar file1 Fl nt Ar file2
-True if both
-.Ar file1
-and
-.Ar file2
-exist and
-.Ar file1
-is newer than
-.Ar file2 .
-.It Ar file1 Fl nt Ns Ar X Ns Ar Y Ar file2
-True if both
-.Ar file1
-and
-.Ar file2
-exist and
+True if
.Ar file1
-has a more recent last access time
-.Pq Ar X Ns = Ns Cm a ,
-inode creation time
-.Pq Ar X Ns = Ns Cm b ,
-change time
-.Pq Ar X Ns = Ns Cm c ,
-or modification time
-.Pq Ar X Ns = Ns Cm m
-than the last access time
-.Pq Ar Y Ns = Ns Cm a ,
-inode creation time
-.Pq Ar Y Ns = Ns Cm b ,
-change time
-.Pq Ar Y Ns = Ns Cm c ,
-or modification time
-.Pq Ar Y Ns = Ns Cm m
-of
+exists and is newer than
.Ar file2 .
-Note that
-.Ic -ntmm
-is equivalent to
-.Ic -nt .
.It Ar file1 Fl ot Ar file2
-True if both
-.Ar file1
-and
-.Ar file2
-exist and
+True if
.Ar file1
-is older than
+exists and is older than
.Ar file2 .
-Note that
-.Ar file1
-.Ic -ot
-.Ar file2
-is equivalent to
-.Ar file2
-.Ic -nt
-.Ar file1
-.It Ar file1 Fl ot Ns Ar X Ns Ar Y Ar file2
-Equivalent to
-.Ar file2
-.Ic -nt Ns Ar Y Ns Ar X
-.Ar file1 .
.It Ar file1 Fl ef Ar file2
True if
.Ar file1
OpenPOWER on IntegriCloud