Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2001 09:20:02 -0800 (PST)
From:      setantae <setantae@submonkey.net>
To:        freebsd-doc@freebsd.org
Subject:   Re: docs/32082: true.1 totally incorrect
Message-ID:  <200111191720.fAJHK2U44929@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/32082; it has been noted by GNATS.

From: setantae <setantae@submonkey.net>
To: charon@labs.gr
Cc: doc@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: docs/32082: true.1 totally incorrect
Date: Mon, 19 Nov 2001 17:16:34 +0000

 On Mon, Nov 19, 2001 at 07:00:04AM -0800, setantae wrote:
 >  
 >  True. While the version of true(1) that we are shipping will always
 >  exit with a status of 1, I'm not sure that's portable.
 >  I tried to check to see if POSIX guarantees `one', or just `non-zero',
 >  but it would appear that you have to be a member to look at the
 >  standard ??
 
 I've been furnished with a copy of the standard for false(1), and
 the outcome is that it just needs to be non-zero.
 Therefore, I suggest we use this patch :
 
 diff -rc src/usr.bin.old/false/false.1 src/usr.bin/false/false.1
 *** src/usr.bin.old/false/false.1	Mon Nov 19 11:08:41 2001
 --- src/usr.bin/false/false.1	Mon Nov 19 11:17:21 2001
 ***************
 *** 46,62 ****
   .Sh DESCRIPTION
   The
   .Nm
 ! command is usually used in a Bourne shell script.
 ! It tests for the appropriate status "false" before running
 ! (or failing to run) a list of commands.
 ! .Pp
 ! The
 ! .Nm
 ! utility always exits with a value other than zero.
   .Sh SEE ALSO
   .Xr csh 1 ,
   .Xr sh 1 ,
   .Xr true 1
   .Sh STANDARDS
   The
   .Nm
 --- 46,60 ----
   .Sh DESCRIPTION
   The
   .Nm
 ! command does nothing but exit with a non-zero status.
   .Sh SEE ALSO
   .Xr csh 1 ,
   .Xr sh 1 ,
   .Xr true 1
 + .Sh DIAGNOSTICS
 + The
 + .Nm
 + utility always returns with a non-zero exit code.
   .Sh STANDARDS
   The
   .Nm
 diff -rc src/usr.bin.old/true/true.1 src/usr.bin/true/true.1
 *** src/usr.bin.old/true/true.1	Sun Nov 18 20:08:15 2001
 --- src/usr.bin/true/true.1	Mon Nov 19 11:18:11 2001
 ***************
 *** 46,54 ****
   .Sh DESCRIPTION
   The
   .Nm
 ! command is normally used in a Bourne shell script.
 ! It tests for the appropriate status "false" before running
 ! (or failing to run) a list of commands.
   .Sh SEE ALSO
   .Xr csh 1 ,
   .Xr false 1 ,
 --- 46,52 ----
   .Sh DESCRIPTION
   The
   .Nm
 ! command does nothing but exit with a status code of zero.
   .Sh SEE ALSO
   .Xr csh 1 ,
   .Xr false 1 ,

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111191720.fAJHK2U44929>