mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Köhler <jean-luc@picard.franken.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Kernel 2.2.17 bug found
Date: Thu, 9 Nov 2000 16:49:00 +0100	[thread overview]
Message-ID: <20001109164900.A3505@picard.franken.de> (raw)
In-Reply-To: <Pine.LNX.3.91.1001109171915.5142B-100000@aries>
In-Reply-To: <Pine.LNX.3.91.1001109171915.5142B-100000@aries>; from 1997s112@educ.disi.unige.it on Thu, Nov 09, 2000 at 05:20:22PM +0200

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2000-11-09 15:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-09 15:20 Andrea Pintori
2000-11-09 15:43 ` Tim Waugh
2000-11-09 15:47   ` Michael Rothwell
2000-11-09 15:49 ` Thomas Köhler [this message]
2000-11-09 16:00 ` Richard B. Johnson
2000-11-09 22:55 ` J . A . Magallon
2000-11-09 16:03 Jesse Pollard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001109164900.A3505@picard.franken.de \
    --to=jean-luc@picard.franken.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®