From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13653 invoked from network); 19 Apr 2002 11:50:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Apr 2002 11:50:18 -0000 Received: (qmail 1979 invoked by alias); 19 Apr 2002 11:49:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4843 Received: (qmail 1967 invoked from network); 19 Apr 2002 11:49:53 -0000 To: zsh-users@sunsite.dk Subject: Convert absolute paths to relative paths From: Vin Shelton Date: Fri, 19 Apr 2002 07:49:48 -0400 Message-ID: <545ofgfaowz.fsf@icd.teradyne.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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