Document the fact that basename and dirname conform to 1003.2-1992.
Remove description of old, pre-POSIX behavior wrt. suffixes.
This commit is contained in:
parent
35fdf4ad74
commit
b71c2887f2
|
@ -33,7 +33,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)basename.1 6.7 (Berkeley) 6/27/91
|
||||
.\" $Id: basename.1,v 1.2 1993/08/01 07:34:19 mycroft Exp $
|
||||
.\" $Id: basename.1,v 1.3 1993/08/16 22:03:50 jtc Exp $
|
||||
.\"
|
||||
.Dd June 27, 1991
|
||||
.Dt BASENAME 1
|
||||
|
@ -57,14 +57,6 @@ and a
|
|||
.Ar suffix ,
|
||||
if given.
|
||||
The resulting filename is written to the standard output.
|
||||
If
|
||||
.Ar string
|
||||
ends in the slash character,
|
||||
.Ql / ,
|
||||
or is the same as the
|
||||
.Ar suffix
|
||||
argument,
|
||||
a newline is output.
|
||||
A non-existant suffix is ignored.
|
||||
.Pp
|
||||
.Nm Dirname
|
||||
|
@ -88,11 +80,12 @@ and
|
|||
.Nm dirname
|
||||
exit 0 on success, and >0 if an error occurs.
|
||||
.Sh SEE ALSO
|
||||
.Xr csh 1
|
||||
.Xr csh 1 ,
|
||||
.Xr sh 1
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm basename
|
||||
and
|
||||
.Nm dirname
|
||||
functions are expected to be POSIX 1003.2 compatible.
|
||||
utilities conform to
|
||||
.St -p1003.2 .
|
||||
|
|
Loading…
Reference in New Issue