From owner-freebsd-questions Tue Nov 9 5:54:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from southpass.baynetworks.com (ns2.BayNetworks.COM [134.177.3.16]) by hub.freebsd.org (Postfix) with ESMTP id E28F214FD9 for ; Tue, 9 Nov 1999 05:54:55 -0800 (PST) (envelope-from bwithrow@engeast.BayNetworks.COM) Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by southpass.baynetworks.com (8.9.1/8.9.1) with ESMTP id FAA01321 for ; Tue, 9 Nov 1999 05:49:14 -0800 (PST) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id IAA11741; Tue, 9 Nov 1999 08:50:35 -0500 (EST) Received: from tuva.engeast.baynetworks.com (tuva [192.32.150.102]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with ESMTP id IAA18870; Tue, 9 Nov 1999 08:54:47 -0500 for Received: from tuva.engeast.baynetworks.com (localhost [127.0.0.1]) by tuva.engeast.baynetworks.com (8.9.3/8.9.3) with ESMTP id IAA03114; Tue, 9 Nov 1999 08:54:28 -0500 (EST) (envelope-from bwithrow@tuva.engeast.baynetworks.com) Message-Id: <199911091354.IAA03114@tuva.engeast.baynetworks.com> X-Mailer: exmh version 2.0.2 2/24/98 To: questions@freebsd.org Cc: bwithrow@nortelnetworks.com Subject: Is sh (or amd) confused about where it is? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 09 Nov 1999 08:54:28 -0500 From: Robert Withrow Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? -- Robert Withrow -- (+1 978 288 8256) BWithrow@BayNetworks.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message