From owner-freebsd-questions Tue Nov 9 6: 8:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from wop21.wop.wtb.tue.nl (wop21.wop.wtb.tue.nl [131.155.56.216]) by hub.freebsd.org (Postfix) with ESMTP id 0E5EB14E24 for ; Tue, 9 Nov 1999 06:07:57 -0800 (PST) (envelope-from karelj@wop21.wop.wtb.tue.nl) Received: (from karelj@localhost) by wop21.wop.wtb.tue.nl (8.9.3/8.9.3) id PAA00840; Tue, 9 Nov 1999 15:04:55 +0100 (CET) (envelope-from karelj) Date: Tue, 9 Nov 1999 15:04:55 +0100 From: Karel Joop Bosschaart To: Robert Withrow , freebsd-questions@freebsd.org Subject: Re: Is sh (or amd) confused about where it is? Message-ID: <19991109150455.A807@wop21.wop.wtb.tue.nl> Reply-To: K.J.Bosschaart@wtb.tue.nl References: <199911091354.IAA03114@tuva.engeast.baynetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <199911091354.IAA03114@tuva.engeast.baynetworks.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 09, 1999 at 08:54:28AM -0500, Robert Withrow wrote: > Consider: > > bash-2.03$ uname -srm > FreeBSD 3.2-RELEASE i386 > bash-2.03$ pwd > /net/tannu/view/bob-3/tree/bcc > > /net/tannu automounts to a Solaris system: > > bash-2.03$ amq | grep tannu > /net/tannu host tannu:/net/tannu /a/net/tannu/root > > But if I do this: > > bash-2.03$ sh > $ cd /net/tannu/view/bob-3/tree/bcc > $ pwd > /a/net/tannu/root/view/bob-3/tree/bcc > $ > > I can deal with the /a (but I'd rather not), but the "root" part gives > me real gas. How come bash get it right but sh gets it wrong? Can > I convice AMD or shell not to do that? Just tried something similar on my system (though with tcsh and bash): [karelj@wop21]~/flatflame> pwd /mnt/flatflame [karelj@wop21]~/flatflame> bash bash-2.02$ pwd /home/karelj/flatflame bash-2.02$ ~/flatflame is a symlink to /mnt/flatflame. It seems that tcsh's pwd reports the 'shortest' path, while bash reports the path how I came there... Karel. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message