Newsgroups: comp.unix.shell
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-picayune.mit.edu!athena.mit.edu!jik
From: jik@athena.mit.edu (Jonathan I. Kamens)
Subject: Re: Append command-line filespec to path in alias?
In-Reply-To: jaw@cs.arizona.edu's message of 21 Apr 91 21:08:00 GMT
Message-ID: <JIK.91Apr21193458@pit-manager.mit.edu>
Sender: news@athena.mit.edu (News system)
Organization: Massachusetts Institute of Technology
References: <1436@caslon.cs.arizona.edu>
Date: Sun, 21 Apr 91 23:35:04 GMT
Lines: 22

In article <1436@caslon.cs.arizona.edu> jaw@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@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710

