[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: scripting question



On Thu, Apr 17, 2003 at 08:25:08PM +0200, Jan Trippler wrote:
> On Fre, 18 Apr 2003 at 03:17 (+1200), Richard Hector wrote:
> > On Thu, Apr 17, 2003 at 02:47:46PM +0100, Colin Watson wrote:
> > > 
> > > There's an amusing defence against that: 'touch /--version'. Then 'rm
> > > -rf *' in / expands to 'rm -rf <stuff> --version <more stuff>', and does
> > > nothing except print its version number and copyright information.
> > 
> > Hmm. Along those lines, I guess it's a good idea to watch out for people
> > scattering around files called "-rf" :-/
> 
> "touch ./-i" should solve this problem ;-)

OK. My current thoughts are revolving around backtick expansion, but I think
I'll stop experimenting to be on the safe side :-)

Richard



Reply to: