bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash documentation patch for test's -nt and -ot operators


From: Paul Eggert
Subject: bash documentation patch for test's -nt and -ot operators
Date: Tue, 26 Feb 2002 15:48:21 -0800 (PST)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.8' -DCONF_MACHTYPE='sparc-sun-solaris2.8' 
-DCONF_VENDOR='sun' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib -g 
-O2 -Wall -W -Wno-sign-compare -Wpointer-arith -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-noreturn -Wmissing-format-attribute
uname output: SunOS sic.twinsun.com 5.8 Generic_108528-13 sun4u sparc 
SUNW,UltraSPARC-IIi-Engine
Machine Type: sparc-sun-solaris2.8

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        The "-ot" and "-nt" operators of the "test" command has
        behavior that is not documented when files do not exist.

Repeat-By:


Fix:
2002-02-26  Paul Eggert  <eggert@twinsun.com>

        * doc/bashref.texi (Bash Conditional Expressions): Document
        the case for -ot and -nt when a file operand does not exist.

===================================================================
RCS file: doc/bashref.texi,v
retrieving revision 2.5.1.4.0.1
retrieving revision 2.5.1.4.0.2
diff -pu -r2.5.1.4.0.1 -r2.5.1.4.0.2
--- doc/bashref.texi    2001/11/19 06:00:59     2.5.1.4.0.1
+++ doc/bashref.texi    2002/02/26 23:42:34     2.5.1.4.0.2
@@ -4861,10 +4861,12 @@ True if @var{file} exists and has been m
 
 @item @var{file1} -nt @var{file2}
 True if @var{file1} is newer (according to
-modification date) than @var{file2}.
+modification date) than @var{file2},
+or if @var{file1} exists and @var{file2} does not.
 
 @item @var{file1} -ot @var{file2}
-True if @var{file1} is older than @var{file2}.
+True if @var{file1} is older than @var{file2},
+or if @var{file2} exists and @var{file1} does not.
 
 @item @var{file1} -ef @var{file2}
 True if @var{file1} and @var{file2} have the same device and



reply via email to

[Prev in Thread] Current Thread [Next in Thread]