[6817] in RedHat Linux List
Re: Using "find" to get rid of cores etc.
daemon@ATHENA.MIT.EDU (Wierdl Mate)
Sun Dec 1 13:50:43 1996
To: Borg <vladimip@iceonline.com>
cc: redhat-list@redhat.com
In-reply-to: Your message of "Fri, 29 Nov 1996 19:19:35 PST."
<329FA7C7.530DF08F@iceonline.com>
Date: Sun, 01 Dec 1996 10:57:37 -0600
From: Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> Dave Wreski wrote:
> ........
> .....
> > find . -name core -exec rm {} \; -print
>
> My "rm" is aliased to "rm -i" in one of my shell startup
> files. The above command ignores aliasing and unconditionally
> removes anything matching "-name xxx". Why?
>
> Yes, I know I can also do "-ok" instead of "-exec", like:
>
> touch aaa.summary
> [vlad@borg /vlad]$ find . -name *.summary -ok rm {} \; -print
> < rm ... ./aaa.summary > ? y
> ./aaa.summary
>
> however, my "rm" aliases should be honoured by "find", shouldn't
> they?
>
> Vlad (confused) Petersen
I think this is not an interactive invocation of rm (I mean the shell
is not invoked interactively). See the man pages for bash (aliases are
not expanded when the shell is not interactive).
Mate
M\'at\'e Wierdl
Department of Mathematical Sciences
University of Memphis,
E-mail: matyi@moni.msci.memphis.edu
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null