l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2005 Jan 02 05:03

The following is an archive of a post made to our 'vox mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox] fish?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox] fish?



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@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@praxis.homedns.org
Mike Wenk
 
_______________________________________________
vox mailing list
vox@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!