lkml.org 
[lkml]   [2000]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel 2.2.17 bug found
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.031 / U:8.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site