Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP
Path: utzoo!utcs!lsuc!dave
From: dave@lsuc.UUCP (David Sherman)
Newsgroups: net.unix
Subject: Re: csh aliases
Message-ID: <499@lsuc.UUCP>
Date: Mon, 11-Mar-85 13:36:38 EST
Article-I.D.: lsuc.499
Posted: Mon Mar 11 13:36:38 1985
Date-Received: Mon, 11-Mar-85 14:44:00 EST
References: <630@mako.UUCP>
Reply-To: dave@lsuc.UUCP (David Sherman)
Distribution: net
Organization: Law Society of Upper Canada, Toronto
Lines: 24
Summary: use shell variables

In article <630@mako.UUCP> glenm@mako.UUCP (Glen McCluskey) writes:
||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
	...
||	% nalias pipe '|'
||	% sort xyz pipe uniq

Oh, come now. Feeping creaturism. This is what shell variables
are for. I don't use csh at all, and use shell variables in the
Bourne shell for both commands and file/directory names.
	t=/etc/termcap
	more $t

	pipe='|'
	sort xyz $pipe uniq

Dave Sherman
-- 
{utzoo pesnta nrcaero utcs hcr}!lsuc!dave
{allegra decvax ihnp4 linus}!utcsri!lsuc!dave