Re: Kernel 2.2.17 bug found

From: Thomas Köhler (jean-luc@picard.franken.de)
Date: Thu Nov 09 2000 - 10:49:00 EST


On Thu, Nov 09, 2000 at 05:20:22PM +0200,
Andrea Pintori <1997s112@educ.disi.unige.it> 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:   jean-luc@picard.franken.de     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:14 EST