Append command-line filespec to path in alias?
    Jonathan I. Kamens 
    jik at athena.mit.edu
       
    Mon Apr 22 09:35:04 AEST 1991
    
    
  
In article <1436 at caslon.cs.arizona.edu> jaw at cs.arizona.edu (Jim Wilson) writes:
       alias oldnews 'elm -f ~/.News/<here is where I'm lost>'
   Then,
	oldnews comp.unix.shell
   should result in
	elm -f ~/.News/comp.unix.shell
alias oldnews 'elm -f ~/.News/\!:1'
You could also use '\!*' or '\!:*' if you always only run the alias
with one argument.
This should be documented in the man page for csh(1) on your system,
in the section entitled "Alias substitution."  At least, that's where
it is on my system.
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710
    
    
More information about the Comp.unix.shell
mailing list