Fun with ignoreeof

Richard A. O'Keefe ok at quintus.UUCP
Thu Jan 28 21:32:20 AEST 1988


In article <3854 at vdsvax.steinmetz.ge.com>, barnett at vdsvax.steinmetz.ge.com (Bruce G. Barnett) writes:
> In article <584 at cresswell.quintus.UUCP> ok at quintus.UUCP (Richard A. O'Keefe) writes:
> |The command
> |	/bin/kill -HUP $$
> |is immune to aliases, 
> 
> Not really. Try
> 	alias /bin/kill echo
> 
He's absolutely right, folks.  (If I had a Bourne shell with history,
I would change over RIGHT NOW!)  The fine print in the manual says
that the things you alias are "words", and /bin/kill is a "word".
What an amazing feature.  I wish I could make it go away...

Ok, since you can't alias alias 'unalias',
	unalias kill
	kill -HUP $$
or
	''kill -HUP $$
or	\kill -HUP $$
or even
	\/bin/sh -c "/bin/kill -HUP $$"

{sh functions can't look like absolute pathnames}



More information about the Comp.unix.questions mailing list