Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site mako.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!tektronix!orca!mako!glenm
From: glenm@mako.UUCP (Glen McCluskey)
Newsgroups: net.unix
Subject: csh aliases
Message-ID: <630@mako.UUCP>
Date: Fri, 8-Mar-85 17:58:18 EST
Article-I.D.: mako.630
Posted: Fri Mar  8 17:58:18 1985
Date-Received: Mon, 11-Mar-85 04:46:33 EST
Distribution: net
Organization: Tektronix, Wilsonville OR
Lines: 24

Has anyone thought of modifying the C shell to allow aliases on
other than the first word of each command?  For example, assuming
a new alias command called ``nalias'', one might say:

	% nalias t '/etc/termcap'
	% more t

which would invoke ``more'' on ``/etc/termcap''.  There are a number
of other ways this might be done, such as with shell variables, but
this seems like a convenient thing to have.

This could be generalized (probably too much!) to allow one to change
shell syntax, such as the following:

	% nalias pipe '|'
	% sort xyz pipe uniq

equivalent to

	% sort xyz | uniq


					Glen McCluskey
					..tektronix!mako!glenm