sbase/readlink.1
FRIGN e51a2e6d2f Use ISO-date-format in manpages
The one specified by mdoc is hard to read for non-native
speakers from countries which read the date day-first (like
Germany, Greece, North-Korea, Swamp,...).
This is also consistent with how we generally specify dates
at suckless.org.
2015-10-08 17:15:08 +02:00

34 lines
632 B
Groff

.Dd 2015-10-08
.Dt READLINK 1
.Os sbase
.Sh NAME
.Nm readlink
.Nd print symbolic link target or canonical file name
.Sh SYNOPSIS
.Nm
.Op Fl e | Fl f | Fl m
.Op Fl n
.Ar path
.Sh DESCRIPTION
.Nm
writes the target of
.Ar path ,
if it is a symbolic link, to stdout.
If not,
.Nm
exits with a non-zero return value.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl e | Fl f | Fl m
Canonicalize
.Ar name ,
which needn't be a symlink,
by recursively following every symlink in its path components.
All | All but the last | No path components must exist.
.It Fl n
Do not print the terminating newline.
.El
.Sh SEE ALSO
.Xr readlink 2 ,
.Xr realpath 3