On Thu, Nov 09, 2000 at 05:20:22PM +0200,
Andrea Pintori <[EMAIL PROTECTED]> wrote:
>
> I've a Debian dist, Kernel 2.2.17, no patches, all packages are stable.
I've Debian unstable, Kernel 2.2.17
> here what I found:
>
> [/tmp] mkdir old
> [/tmp] chdir old
> [/tmp/old] mv . ../new
> [/tmp/old] (should be /tmp/new !!)
Uhm, no. $PWD only gets updated on cd, not on mv. Thus, the old value is
OK!
> [/tmp/old] mkdir fff
> error: cannot write...
> [tmp/old] ls > fff
> error: cannot write...
This seems wrong. But I'd rather say this is a bug in your shell, not in
the kernel!
/tmp> mkdir old
/tmp> cd old
/tmp/old> mv . ../new
/tmp/old> mkdir fff
/tmp/old> ls -al
total 12
drwxr-xr-x 3 jean-luc jean-luc 4096 Nov 9 16:46 .
drwxrwxrwt 8 root root 4096 Nov 9 16:46 ..
drwxr-xr-x 2 jean-luc jean-luc 4096 Nov 9 16:46 fff
/tmp/old> cd ../new
/tmp/new> ls -al
total 12
drwxr-xr-x 3 jean-luc jean-luc 4096 Nov 9 16:46 .
drwxrwxrwt 8 root root 4096 Nov 9 16:46 ..
drwxr-xr-x 2 jean-luc jean-luc 4096 Nov 9 16:46 fff
Works for both bash-2.04 and zsh-3.1.9-dev7 (as in Debian unstable).
> Does anybody knew this bug?
Well, I can't even reproduce it ;)
Ciao,
Thomas
--
Thomas Köhler Email: [EMAIL PROTECTED] | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
PGP signature