Bug: ./ != $PWD

Andreas Dilger adilger at clusterfs.com
Sat Mar 18 10:16:15 UTC 2006


On Mar 18, 2006  14:22 +0500, Victor Porton,,, wrote:
> I can't tell the reason and conditions to repeat this bug...
> 
> "ls" and "ls $PWD" produce different directory listing (of
> different times, so a subdir is existing in one listing and
> missing in an other).
> 
> ls . $PWD

This can happen if your directory is renamed and recreated:

$ mkdir /tmp/foo
$ pushd /tmp/foo
$ echo $PWD
/tmp/foo
$ mv /tmp/foo /tmp/bar
$ echo $PWD
/tmp/foo
$ mkdir /tmp/foo
touch bar
touch $PWD/foo
]$ ls . $PWD
.:
total 0
0 bar

/tmp/foo:
total 0
0 foo


Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.




More information about the Ext3-users mailing list