From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24676 invoked from network); 11 Aug 2005 09:53:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Aug 2005 09:53:24 -0000 Received: (qmail 59290 invoked from network); 11 Aug 2005 09:53:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 09:53:18 -0000 Received: (qmail 5139 invoked by alias); 11 Aug 2005 09:53:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9291 Received: (qmail 5130 invoked from network); 11 Aug 2005 09:53:10 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Aug 2005 09:53:10 -0000 Received: (qmail 58185 invoked from network); 11 Aug 2005 09:53:09 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 09:53:04 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 11 Aug 2005 10:50:53 +0100 Received: from csr.com ([10.102.144.127]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 11 Aug 2005 10:52:52 +0100 To: zsh-users@sunsite.dk Subject: Re: Some strange behavior of %~ In-reply-to: <42FAFC8D.000002.21101@mfront7.yandex.ru> References: <42FAFC8D.000002.21101@mfront7.yandex.ru> Comments: In-reply-to "Artur Penttinen" message dated "Thu, 11 Aug 2005 11:21:49 +0400." Date: Thu, 11 Aug 2005 10:53:02 +0100 Message-ID: <17079.1123753982@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 11 Aug 2005 09:52:52.0631 (UTC) FILETIME=[70C7BA70:01C59E5A] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 "Artur Penttinen" wrote: > # cd work > # print -P "%~" > ~/work > # cd ../work > # print -P "%~" > /hipsohome/home/arpentti/work > # print $ZSH_VERSION > 4.2.5 > # This is probably something to do with using an automounter. I would guess that $HOME is /home/arpentti, right? On the second system, this probably gets created as a link to /hipsohome/home/arpentti which will be where the automounter mounts the directory. (Or the person responsible just likes symbolic links.) Quite why the cd works that way I'm not sure, but it's possibly you have the CHASE_LINKS option set, in which case the symbolic links are resolved. But that obviously didn't happen with the first cd. Using both "pwd -L" and "pwd -P" (print logical and physical directory) after each step might make it clearer. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************