95 lines
2.0 KiB
HTML
95 lines
2.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of REVPATH</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>REVPATH</H1>
|
|
Section: User Commands (1)<BR>Updated: imake 1.0.7<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
revpath - generate a relative path that can be used to undo a change-directory
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>revpath</B>
|
|
|
|
<I>path</I>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<I>revpath</I>
|
|
|
|
program prints out a relative path that is the ``reverse'' or ``inverse'' of
|
|
<I>path</I>.
|
|
|
|
Start with two directories
|
|
<I>top</I>
|
|
|
|
and
|
|
<I>bottom</I>,
|
|
|
|
with the latter below the former, and
|
|
<I>path</I>
|
|
|
|
is the location of
|
|
<I>bottom</I>
|
|
|
|
relative to
|
|
<I>top</I>.
|
|
|
|
The output of
|
|
<I>revpath</I>
|
|
|
|
is the location of
|
|
<I>top</I>
|
|
|
|
relative to
|
|
<I>bottom</I>.
|
|
|
|
The resulting path contains a trailing `/' character when the result is
|
|
non-trivial.
|
|
If
|
|
<I>path</I>
|
|
|
|
is equivalent to `.', the resulting output is empty.
|
|
If
|
|
<I>path</I>
|
|
|
|
is invalid in some way (e.g., doesn't represent the path to a subdirectory)
|
|
the output is also empty and no error messages are ever generated.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
There are no diagnostics. Error conditions are silently ignored, and the
|
|
exit status is always 0.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
It isn't possible to reverse arbitrary relative paths.
|
|
If any path element between the two end points of
|
|
<I>path</I>
|
|
|
|
is a symbolic link, the results will probably be incorrect.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">DIAGNOSTICS</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">BUGS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:26 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|