Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Convert absolute paths to relative paths
- X-seq: zsh-users 4843
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Convert absolute paths to relative paths
- Date: Fri, 19 Apr 2002 07:49:48 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Greetings -
Can anyone show me some nifty zsh hackery to convert a string
representing an absolute path into a relative path? For example, if
my current $PWD is "/opt/build" and the path I want to convert is
"/opt/src/perl-5.6.1", I would like the result to be
"../src/perl-5.6.1".
Thanks in advance,
Vin Shelton
Messages sorted by:
Reverse Date,
Date,
Thread,
Author