From owner-freebsd-bugs Mon Dec 30 16:00:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA29576 for bugs-outgoing; Mon, 30 Dec 1996 16:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA29570; Mon, 30 Dec 1996 16:00:02 -0800 (PST) Resent-Date: Mon, 30 Dec 1996 16:00:02 -0800 (PST) Resent-Message-Id: <199612310000.QAA29570@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Helbig@MX.BA-Stuttgart.De Received: from terminator.informatik.ba-stuttgart.de (terminator.informatik.ba-stuttgart.de [141.31.1.21]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id PAA29067 for ; Mon, 30 Dec 1996 15:52:01 -0800 (PST) Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by terminator.informatik.ba-stuttgart.de (8.7.6/8.7.3) with ESMTP id XAA27612 for ; Mon, 30 Dec 1996 23:51:26 +0100 Received: (from wh@localhost) by helbig.informatik.ba-stuttgart.de (8.8.4/8.8.4) id AAA00671; Tue, 31 Dec 1996 00:51:57 +0100 (MET) Message-Id: <199612302351.AAA00671@helbig.informatik.ba-stuttgart.de> Date: Tue, 31 Dec 1996 00:51:57 +0100 (MET) From: Helbig@MX.BA-Stuttgart.De Reply-To: Helbig@MX.BA-Stuttgart.De To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2331: strange output of sh's pwd on symlinked directories Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2331 >Category: bin >Synopsis: strange output of sh's pwd on symlinked directories >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 30 16:00:01 PST 1996 >Last-Modified: >Originator: Wolfgang Helbig >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: The shell builtin prints wrong names if you cd .. up crossing a symlinked directory. >How-To-Repeat: Assuming standard configuration, i. e. /home is a symbolic link to /usr/home: $ cd /home $ pwd /home $ cd .. $ pwd / ^ $ /bin/pwd /usr ^^^^ If you do an ls here, you get the contents of /usr and not of / as is shown by pwd. The first time I did this, I thought I've overridden / by /usr. >Fix: when in doubt, use /bin/pwd. >Audit-Trail: >Unformatted: