2.0.30 vs 2.1.51 directory handling change for "."

Craig Brozefsky (craig@onshore.com)
Tue, 16 Sep 1997 22:46:50 -0500


I was not sure if this constitutes a bug, but it does look like a change
in behavior. I am not sure if this behaviour would break any scripts but
it does confuse the hell out of these bits of code:

mkdir testdir
cd testdir
rm ../testdir
if [ -d . ] ; then echo "I see it"; fi
if [ -d ../testdir ] ; then echo "I see it"; fi

I get different behavior under 2.0.30 and 2.1.51

Under 2.0.30 the test for "." fails
Under 2.1.51 the test for "." succeeds
It fails for both kernels when testing for ../testdir

Could this be an artifact of the dcache changes in 2.1.51?

Craig Brozefsky craig@onshore.com
onShore Inc. http://www.onshore.com/~craig
Development Team p_priority=PFUN+(p_work/4)+(2*p_cash)
I hear my inside, the mechanized hum of another world - Steely Dan