bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PWD value is not correct after performing some kind of actions.


From: Ido Diamant
Subject: PWD value is not correct after performing some kind of actions.
Date: Sun, 13 Jan 2002 02:52:17 +0200 (IST)

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib -g -O2
uname output: Linux the 2.4.17 #1 SMP Mon Dec 24 00:43:55 IST 2001 i586 unknown
Machine Type: i586-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        I think the example will explain the problem.
        The value of $PWD is not correct. /bin/pwd shows me the correct value.


Repeat-By:

ido@the:~$ mkdir -p tmp1/tmp2/tmp3
ido@the:~$ cd tmp1/tmp2/tmp3/
ido@the:~/tmp1/tmp2/tmp3$ rm -fr ~/tmp1/
ido@the:~/tmp1/tmp2/tmp3$ cd ..
cd: could not get current directory: getcwd: cannot access parent directories: 
No such file or directory
cd: could not get current directory: getcwd: cannot access parent directories: 
No such file or directory
ido@the:.$ cd ..
chdir: could not get current directory: getcwd: cannot access parent 
directories: No such file or directory
ido@the:..$ cd ..
ido@the:../..$ cd ..
ido@the:../../..$ cd ..
ido@the:../../../..$
ido@the:../../../..$ pwd
../../../..
ido@the:../../../..$ echo $PWD
../../../..
ido@the:../../../..$ /bin/pwd
/


Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]