On Sun, Jun 15, 2008 at 11:39:38AM +0200, Sander van Dijk wrote: > On 6/14/08, James Turner <[EMAIL PROTECTED]> wrote: > > Doesn't it make more sense to do a test, then just redirect error > > output? > > Then you'd have to test more than your patch does: right now, your > patch only tests if we're dealing with a directory; whether or not the > user running the script has permission to cd into that directory is > not taken in consideration. I agree with the others here that the cd > itself is the safest test.
Thanks for the info guys. I see your point, I suppose cd is the best test. -- James Turner BSD Group Consulting http://www.bsdgroup.org