Re: Bug: ./ != $PWD

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

 



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.

_______________________________________________

Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux