From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16422 invoked from network); 22 Feb 2005 11:54:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Feb 2005 11:54:38 -0000 Received: (qmail 79987 invoked from network); 22 Feb 2005 11:54:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Feb 2005 11:54:32 -0000 Received: (qmail 18214 invoked by alias); 22 Feb 2005 11:54:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8542 Received: (qmail 18199 invoked from network); 22 Feb 2005 11:54:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Feb 2005 11:54:21 -0000 Received: (qmail 78507 invoked from network); 22 Feb 2005 11:54:21 -0000 Received: from gw15.rotuaari.net (HELO gw15.virtues.local) (212.50.147.115) by a.mx.sunsite.dk with SMTP; 22 Feb 2005 11:54:15 -0000 Received: from [10.20.41.232] (unknown [212.50.147.121]) by gw15.virtues.local (Postfix) with ESMTP id B052A42506C; Tue, 22 Feb 2005 13:54:14 +0200 (EET) In-Reply-To: <421AB693.7030909@cql.com> References: <2e24629722633f291ea82664e14cbc5d@ee.oulu.fi> <200502211431.j1LEVEJe015971@news01.csr.com> <421AB693.7030909@cql.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <386bf7acc2eb80d8cadba93de6d3812c@ee.oulu.fi> Content-Transfer-Encoding: 7bit Cc: zsh-users@sunsite.dk From: =?ISO-8859-1?Q?Mika_Sepp=E4nen?= Subject: Re: Named directories Date: Tue, 22 Feb 2005 13:54:29 +0200 To: Seth Kurtzberg X-Mailer: Apple Mail (2.619.2) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 > 21.2.2005 kello 16:31, Peter Stephenson wrote: > > For example, I have the following (and sorry if I'm misinterpreting > the question): I already solved it. Problem was slash at end of path. This is is possibly a bug in zsh, but in any case it can be used as hack to get behaviour you stated bellow: > export UTILDIR=/a/b/c > export ud=$UTILDIR If I write that in a little bit different way: export UTILDIR="/a/b/c" export ud="$UTILDIR/" Now you can use both with cd-command, but %~ expands to UTILDIR not ud, because of slash at end of ud. Mika