mirror of https://github.com/mkerrisk/man-pages
basename.3: Replace an ad-hoc table with a real one
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4df3a4bc62
commit
c6076d0e53
|
@ -107,15 +107,17 @@ and
|
|||
.BR basename ()
|
||||
for different paths:
|
||||
.sp
|
||||
.nf
|
||||
.B "path dirname basename"
|
||||
"/usr/lib" "/usr" "lib"
|
||||
"/usr/" "/" "usr"
|
||||
"usr" "." "usr"
|
||||
"/" "/" "/"
|
||||
"." "." "."
|
||||
".." "." ".."
|
||||
.fi
|
||||
.TS
|
||||
lb lb lb
|
||||
l l l l.
|
||||
path dirname basename
|
||||
/usr/lib /usr lib
|
||||
/usr/ / usr
|
||||
usr . usr
|
||||
/ / /
|
||||
. . .
|
||||
.. . ..
|
||||
.TE
|
||||
.SH RETURN VALUE
|
||||
Both
|
||||
.BR dirname ()
|
||||
|
|
Loading…
Reference in New Issue