From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19583 invoked by alias); 27 Oct 2010 16:50:18 -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: 15507 Received: (qmail 23119 invoked from network); 27 Oct 2010 16:50:15 -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: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Wed, 27 Oct 2010 18:44:54 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Absolute path of a path Message-ID: <20101027164454.GA19471@prunille.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6164-vl-r38670 (2010-10-13) On 2010-10-27 11:34:44 +0200, Jérémie Roquet wrote: > 2010/10/27 Nikolai Weibull : > > How do I get the absolute path of a path?  The only thing I can find > > is the :a modifier for history expansion. > > your_path(:a) > > For example .(:a) is pwd BTW, is there a way to get the canonicalised absolute pathname with zsh? (i.e. what the "realpath" command gives.) -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)