FYI

Josh

---------- Forwarded message ----------
From: Vincent Lefevre <vinc...@vinc17.net>
Date: Wed, Aug 29, 2012 at 9:47 AM
Subject: Bug#686149: ksh93 fails to detect renamed parent directory
To: Debian Bug Tracking System <sub...@bugs.debian.org>


Package: ksh
Version: 93u+20120628-1
Severity: normal

This is a problem mentioned in bug 667038, but I hadn't provided a
testcase for the rename of the parent directory. The problem with
the rename of the current directory was fixed, but the one for the
parent directory has never been fixed. I initially thought that
both problems were similar so that fixing one would fix the other,
but this is apparently not the case.

Here's the new testcase (for the parent directory):

set -e
[ ! -d tmpdir1 ]
[ ! -d tmpdir3 ]
mkdir -p tmpdir1/tmpdir2
cd tmpdir1/tmpdir2
pwd
echo "$PWD"
mv ../../tmpdir1 ../../tmpdir3
pwd
echo "$PWD"
cd ../..
rm -r tmpdir3

I get the following error when running it from the /tmp directory:

/tmp/tmpdir1/tmpdir2
/tmp/tmpdir1/tmpdir2
/tmp/tmpdir1/tmpdir2
/tmp/tmpdir1/tmpdir2
/home/vinc17/wd/src/testcases/dir-test2.sh[11]: cd: /tmp/tmpdir1/..:
[No such file or directory]

No problems with other shells (dash, bash, zsh, mksh and posh).

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'),
(1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ksh depends on:
ii  libc6  2.13-35

ksh recommends no packages.

ksh suggests no packages.

-- no debconf information
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to