From: jrs@world.std.com (Rick Sladkey) Subject: Re: Directory rename FX Date: Sat, 13 Feb 1993 02:26:33 GMT
>>>>> On 12 Feb 1993 07:47:08 +0100,
>>>>> urlichs@smurf.sub.org (Matthias Urlichs) said:
Matthias> My point is that renaming a directory should not cause a
Matthias> program (which happens to be in that directory at the
Matthias> moment) to fail on every path which happens to begin with
Matthias> "./".
This is a bug in bash, not in the kernel. Have you tried strace?
It is very powerful tool. Look carefully at this example.
$ cd /tmp
$ mkdir x
$ cd x
$ mv ../x ../y
$ strace -o cd.trace -p $$ &
Process 165 attached - interrupt to quit
[1] 176
$ cd .
.: No such file or directory
$ kill -INT %%
Process 165 detached
[1]+ Exit 0 strace -o cd.trace -p $$
$ grep chdir cd.trace
chdir("/tmp/x") = -1 (No such file or directory)
$ echo $BASH_VERSION
1.12.1
$