lkml.org 
[lkml]   [1997]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.0.30 vs 2.1.51 directory handling change for "."


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


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.034 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site