From d2ed2e78cf26a8cd226efd5b3cc99b76347d2e66 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 25 Mar 2002 09:52:25 +0000 Subject: (File characteristic tests): Document the behavior of test -nt and -ot when one of the files does not exist, using the same behavior that is documented in ksh93. --- doc/coreutils.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/coreutils.texi') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index bd72a4ff5..db8ff0faa 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8323,13 +8323,13 @@ True if @var{file} exists and has a size greater than zero. @opindex -nt @cindex newer-than file check True if @var{file1} is newer (according to modification date) than -@var{file2}. +@var{file2}, or if @var{file1} exists and @var{file2} does not. @item @var{file1} -ot @var{file2} @opindex -ot @cindex older-than file check True if @var{file1} is older (according to modification date) than -@var{file2}. +@var{file2}, or if @var{file2} exists and @var{file1} does not. @item @var{file1} -ef @var{file2} @opindex -ef -- cgit v1.2.3-54-g00ecf