From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29900 invoked by alias); 28 Oct 2010 12:45:49 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15519 Received: (qmail 5465 invoked from network); 28 Oct 2010 12:45:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at benizi.com designates 64.130.10.15 as permitted sender) Date: Thu, 28 Oct 2010 08:45:17 -0400 (EDT) From: "Benjamin R. Haskell" To: zsh-users@zsh.org Subject: Re: Absolute path of a path In-Reply-To: <20101028104451.GB19471@prunille.vinc17.org> Message-ID: References: <20101027164454.GA19471@prunille.vinc17.org> <20101028104451.GB19471@prunille.vinc17.org> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463810530-1573707122-1288268826=:3583" Content-ID: ---1463810530-1573707122-1288268826=:3583 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: On Thu, 28 Oct 2010, Vincent Lefevre wrote: > On 2010-10-27 18:54:17 +0200, Jérémie Roquet wrote: >> 2010/10/27 Vincent Lefevre: >>> BTW, is there a way to get the canonicalised absolute pathname with >>> zsh? (i.e. what the "realpath" command gives.) >> >> your_path(:A) I guess :) > > No. The zsh man path says: > > A As `a', but also resolve use of symbolic links where possible. > Note that resolution of `..' occurs before resolution of sym‐ > bolic links. This call is equivalent to a unless your system > has the realpath system call (modern systems do). > > but Linux doesn't have a realpath system call. > > ypig:~> man 2 realpath > No manual entry for realpath in section 2 I think "system call" should be "library call" there. (so, man 3 realpath) -- Best, Ben ---1463810530-1573707122-1288268826=:3583--