Append command-line filespec to path in alias?

Mike O'Connor mjo at irie.ais.org
Mon Apr 22 08:35:23 AEST 1991


In article <1436 at caslon.cs.arizona.edu> jaw at cs.arizona.edu (Jim Wilson) writes:
:How can I write a csh alias that will pre-pend a path to a command-line
:file name?
:
:Example:
:    alias oldnews 'elm -f ~/.News/<here is where I'm lost>'

The missing magic is:

alias oldnews 'elm -f ~/.News/\!^'




====
Mike O'Connor (mjo at ais.org)



More information about the Comp.unix.shell mailing list