C-shell alias bug or bug in user circuitry?
Stop calling me Fred
matt at oddjob.UChicago.EDU
Tue Apr 19 00:25:02 AEST 1988
In article <2 at orphan.UUCP> conor at orphan.UUCP (Conor S. Rafferty) writes:
) I have an alias, called "a". When executed as "a 1 2" it performs
) normally. When executed as "a 1 1", csh leaves my shell hanging in
) the subsidiary prompt and a ^D is necessary to escape, leaving a
) "missing the/endif" complaint.
) orphan conor% alias a
) if !:^ != !:$ then; echo !:$ ; endif
It's true that the csh does not properly parse its input. A simpler
alias does what you want:
alias a if \( \!:^ \!= \!:\$ \) echo \!:\$
________________________________________________________
Matt University matt at oddjob.uchicago.edu
Crawford of Chicago {astrovax,ihnp4}!oddjob!matt
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list