Edit readlink.1 and document missing flags
This commit is contained in:
parent
a645f52843
commit
7faf732d0b
2
README
2
README
|
@ -53,7 +53,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
|
||||||
=* printenv non-posix none
|
=* printenv non-posix none
|
||||||
printf stolen stolen
|
printf stolen stolen
|
||||||
=* pwd yes none
|
=* pwd yes none
|
||||||
= readlink non-posix none
|
= readlink non-posix -e, -m
|
||||||
=* renice yes none
|
=* renice yes none
|
||||||
=* rm yes (-i)
|
=* rm yes (-i)
|
||||||
=* rmdir yes none
|
=* rmdir yes none
|
||||||
|
|
28
readlink.1
28
readlink.1
|
@ -1,31 +1,33 @@
|
||||||
.Dd January 30, 2015
|
.Dd January 31, 2015
|
||||||
.Dt READLINK 1
|
.Dt READLINK 1
|
||||||
.Os sbase
|
.Os sbase
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm readlink
|
.Nm readlink
|
||||||
.Nd print value of a symbolic link or canonical file name
|
.Nd print symbolic link target or canonical file name
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl fn
|
.Op Fl fn
|
||||||
.Ar file
|
.Ar name
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
If
|
||||||
|
.Ar name
|
||||||
|
is a symbolic link,
|
||||||
.Nm
|
.Nm
|
||||||
utility when invoked with the pathname of a symbolic link as
|
writes its target to stdout.
|
||||||
its argument dereferences the symbolic link and prints the name of the target
|
If
|
||||||
on standard output. If the
|
|
||||||
.Fl f
|
.Fl f
|
||||||
option is not specified and
|
is not set and
|
||||||
|
.Ar name
|
||||||
|
is not a symbolic link,
|
||||||
.Nm
|
.Nm
|
||||||
is
|
|
||||||
invoked with an argument other than the pathname of a symbolic link, it
|
|
||||||
exits with a nonzero exit code without printing anything.
|
exits with a nonzero exit code without printing anything.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Fl f
|
.It Fl f
|
||||||
Canonicalize by following every symlink in every component of the
|
Canonicalize
|
||||||
given path recursively. The argument does not need to be a symbolic
|
.Ar name ,
|
||||||
link.
|
which does not need to be a symlink,
|
||||||
|
by recursively following every symlink in its components.
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Do not output the trailing newline.
|
Do not output the trailing newline.
|
||||||
.El
|
.El
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
eprintf("usage: %s [-efmn] file\n", argv0);
|
eprintf("usage: %s [-efmn] name\n", argv0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user