1REVPATH(1)                  General Commands Manual                 REVPATH(1)
2
3
4

NAME

6       revpath  -  generate a relative path that can be used to undo a change-
7       directory
8

SYNOPSIS

10       revpath path
11

DESCRIPTION

13       The revpath program prints out a relative path that is the  ``reverse''
14       or  ``inverse''  of  path.   Start with two directories top and bottom,
15       with the latter below the former, and path is the  location  of  bottom
16       relative to top.  The output of revpath is the location of top relative
17       to bottom.  The resulting path contains a trailing `/'  character  when
18       the result is non-trivial.  If path is equivalent to `.', the resulting
19       output is empty.  If path is invalid in some way (e.g., doesn't  repreā€
20       sent  the path to a subdirectory) the output is also empty and no error
21       messages are ever generated.
22

DIAGNOSTICS

24       There are no diagnostics.  Error conditions are silently  ignored,  and
25       the exit status is always 0.
26

BUGS

28       It  isn't  possible  to  reverse arbitrary relative paths.  If any path
29       element between the two end points of path  is  a  symbolic  link,  the
30       results will probably be incorrect.
31
32
33
34X Version 11                      imake 1.0.8                       REVPATH(1)
Impressum