On Wed, Aug 29, 2012 at 9:52 AM, Vincent Lefevre <[email protected]> wrote:
> On 2012-04-04 11:10:21 -0400, David Korn wrote:
>> cc: [email protected] [email protected]
>> Subject: Re: [ast-developers] Fwd: Bug#667038: ksh93 fails to detect renamed 
>>  current or parent directory
>> --------
>>
>> > This just came through the Debian bugtracker for the ksh (ksh93) package...
>> >
>> > Irek
>> >
>> > ---------- Forwarded message ----------
>> > From: Vincent Lefevre <[email protected]>
>> > Date: Tue, Apr 3, 2012 at 4:57 PM
>> > Subject: Bug#667038: ksh93 fails to detect renamed current or parent 
>> > directory
>> > To: Debian Bug Tracking System <[email protected]>
>> >
> [...]
>>
>> Thanks, I have a fix for this which will be in the next update.
>
> The patch fixed the problem for the current directory, but not for
> the parent one (unless there's something specific to Debian). I've
> reported a new bug:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686149
>
> 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).

Is this fixed in ksh93v-? I don't see this testcase in Roland's
builtin_cd.sh test module... Roland?

Irek
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to