[BACK]Return to realpath.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / realpath

File: [local] / src / usr.bin / realpath / realpath.1 (download)

Revision 1.1, Wed Oct 13 15:04:53 2021 UTC (2 years, 7 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD

Provide realpath(1)

A tiny realpath(3) wrapper to make a porter's life easier.

Feedback kettenis deraadt cheloha sthen
OK cheloha martijn deraadt

.\"	$OpenBSD: realpath.1,v 1.1 2021/10/13 15:04:53 kn Exp $
.\"
.\" Copyright (c) 2021 Klemens Nanni <kn@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: October 13 2021 $
.Dt REALPATH 1
.Os
.Sh NAME
.Nm realpath
.Nd print the canonicalized absolute pathname
.Sh SYNOPSIS
.Nm
.Op Fl q
.Ar file
.Sh DESCRIPTION
The
.Nm
utility uses
.Xr realpath 3
to resolve all symbolic links, extra
.Dq /
characters and references to
.Pa /./
and
.Pa /../
in
.Ar file ,
and prints the absolute pathname on standard output.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl q
Do not print errors.
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr readlink 1 ,
.Xr realpath 3
.Sh HISTORY
The
.Nm
utility first appeared in
.Ox 7.1 .