Stoopid script failure

Patrick O'Callaghan pocallaghan at gmail.com
Sun Feb 7 21:02:42 UTC 2010


On Sun, 2010-02-07 at 13:54 -0700, Greg Woods wrote:
> On Sat, 2010-02-06 at 23:24 +0800, Ed Greshko wrote:
> >  have . in your
> > $PATH.  I recall somewhere, sometime a warning against that....but
> I've
> > ignored it for years and haven't had a problem.  I even forgot what
> the
> > warning was all about.
> 
> Generally it's not a good thing to have a different command be
> executed
> depending on what directory you happen to be in when executing it.
> That
> is at best unreliable, and at worst a major security hole.

I completely agree, but in this case I wanted a highly special-purpose
script that would only ever be run in a specific directory, and didn't
overload any system command.

I decided just to put it in my ~/bin, where it works fine.

poc



More information about the users mailing list