Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Convert absolute paths to relative paths



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