Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Convert absolute paths to relative paths
- X-seq: zsh-users 4846
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Convert absolute paths to relative paths
- Date: Fri, 19 Apr 2002 19:00:38 +0000
- In-reply-to: <1020419175150.ZM15246@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <545ofgfaowz.fsf@xxxxxxxxxxxxxxxx> <1020419175150.ZM15246@xxxxxxxxxxxxxxxxxxxxxxx>
On Apr 19, 5:51pm, Bart Schaefer wrote:
}
} function relative {
By the way, that function always computes a correct path, but it may be
a "sub-optimal" one (too many ..). Short-circuiting it at the minimal
number of .. is left as an exercise.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author