bug-sh-utils
[Top][All Lists]
Advanced

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

Info vs. man of true


From: Orna Agmon
Subject: Info vs. man of true
Date: Wed, 7 May 2003 17:41:56 +0300 (IDT)



On my system, (RH 7.3), I have a man page for true which directs me to the 
updated info page. On the other hand, the info page claims that true does 
not respond to --help and to --version, but it does (as the man page 
claims).

In short, the info is supposed to be more relevant, but actually the man 
page is.

I hereby bring the man and info from my system. If you fixed this in a 
later version, I am sorry to disturb you.


Thanks,
 Orna.

address@hidden ~]$ uname -a
Linux granada 2.4.20 #1 Fri Apr 18 10:02:47 IDT 2003 i686 unknown





TRUE(1)                        FSF                        TRUE(1)

NAME
       true - do nothing, successfully

SYNOPSIS
       true [ignored command line arguments]
       true OPTION

DESCRIPTION
       Exit with a status code indicating success.

       These option names may not be abbreviated.

       --help display this help and exit

       --version
              output version information and exit

AUTHOR
       Written by no one.

REPORTING BUGS
       Report bugs to <address@hidden>.

COPYRIGHT
       Copyright (C) 2000 Free Software Foundation, Inc.
       This  is  free software; see the source for copying condi-
       tions.  There is NO warranty; not even for MERCHANTABILITY
       or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
       The full documentation for true is maintained as a Texinfo
       manual.  If  the  info  and  true  programs  are  properly
       installed at your site, the command

              info true

       should give you access to the complete manual.

GNU sh-utils 2.0.11         April 2002                    TRUE(1)




File: sh-utils.info,  Node: true invocation,  Next: test invocation,  
Prev: fal\se invocation,  Up: Conditions

`true': Do nothing, successfully
================================

   `true' does nothing except return an exit status of 0, meaning
"success".  It can be used as a place holder in shell scripts where a
successful command is needed, although the shell built-in command `:'
(colon) does the same thing faster.

   `true' ignores _all_ command line arguments, even `--help' and
`--version', since to do otherwise would change expected behavior that
some programmers may be relying on.

   This version of `true' is implemented as a C program, and is thus
more secure and faster than a shell script implementation, and may
safely be used as a dummy shell for the purpose of disabling accounts.













-- 
Orna.   |  http://vipe.technion.ac.il/~ladypine/

I am not a number, I am a free person!






reply via email to

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