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

Re: Bug: ./ != $PWD



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.


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