- EXIT CODES
- SEE ALSO
- COPYRIGHT AND LICENSE
relpath - Return the relative pathname
This document describes version 0.04 of relpath (from Perl distribution App-relpath), released on 2015-01-03.
% relpath [OPTIONS] <filename> ...
% relpath /etc/passwd /home/titin/f1 subdir/f2 ../../etc/passwd f1 subdir/f2
This program complements the Unix command realpath. realpath converts relative pathnames to absolute ones, while relpath does the opposite.
The actual routine used is File::Spec's
By default, will check first that the filenames exist, unless
-C) is specified.
Whether to check that file exists. Default is on.
0 on success.
1 on some error, e.g. some filenames are not found (and --check is on).
99 on command-line options error.
Please visit the project's homepage at https://metacpan.org/release/App-relpath.
Source repository is at https://github.com/sharyanto/perl-App-relpath.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-relpath
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by email@example.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.