make and change into a directory
Sacha Chua
sacha-ctE++fEYmiYdc6zLPptBHg at public.gmane.org
Sun May 21 20:21:56 UTC 2006
"Giles Orr" <gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> writes:
> Good question! Fun for the whole family ...
> $ alias a2e="echo -$1-; echo _$1_"
> $ a2e blah
> --
> __ blah
I suspect what's happening here is that $1 is substituted with "" and
the alias expansion happens as normal. ALIAS OTHER_PARAMETERS
becomes ALIAS_EXPANSION OTHER_PARAMETERS.
echo -$1-; echo _$1_ blah
echo --; echo __ blah
... looks just about right.
--
Sacha Chua <sacha-ctE++fEYmiYdc6zLPptBHg at public.gmane.org> - http://sacha.free.net.ph/
Technology evangelist, speaker, and apprentice of all things
University of Toronto - IBM Center for Advanced Studies, Toronto
Interests: enterprise social computing (particularly bookmarking)
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list