[vox] fish?

Michael Wenk wenk at praxis.homedns.org
Sat Jan 1 17:17:30 PST 2005


On Friday 31 December 2004 15:52, Gregory Young wrote:
> On 30 Dec 2004, at 23:09, Robert G. Scofield wrote:
> > The strangest thing just happened.  I was reading a book on Sun OS
> > trying to
> > figure out how to modify my .bashrc to permanently alias rm to rm -i.
> > So I
> > was playing around by typing "touch fish" and "rm fish", etc.  After
> > awhile I
> > became tired and mistakenly typed just "fish."  All of a sudden the
> > rules of
> > the children's card game "Fish" came up on the screen.  And to make
> > matters
> > even more weird the computer started playing a game of Fish with me.
>
> Interestingly, OS behaviour differs on precedence of -i and -f.  AIX
> for example, -f does not override a -i whereas on GNU implementations
> of rm, -f overrides -i.  This has led me to give more credence to not
> aliasing rm or cp or mv to their -i equivalents since the order of
> precedence is not standardised.
>
> Be warned when working across multiple Unix and -like variants.
>
> Regards,
> Greg
>
> _______________________________________________
> vox mailing list
> vox at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox

The best implementation of rm I have seen was to replace the executable with a 
script that copies the offending file to a .trash(with a corresponding cron 
job that deletes files older than say 1 day) 

Mike

-- 
wenk at praxis.homedns.org
Mike Wenk
 


More information about the vox mailing list