The C shell's
keeps you from using an
in an alias.
You have to use a
Or that's what I thought until I saw an article by Lloyd Zusman on
in December 1987.
He'd saved an earlier posting on that group (but without its author's name)
that showed how.
The trick: use enough backslashes (
As an example, here's an alias named
Your alias doesn't need to be as complicated.
But this one shows some tricks, like putting an
, that you might want to use.
The expressions like
# COMPILE AND chmod C PROGRAMS; DON'T USE .c ON END OF FILENAME. alias C 'eval "if (\!* =~ *.c) then \\ echo "C quitting: no .c on end of \!* please." \\ else \\ if (-e \!*) mv \!* \!*.old \\ echo \!*.c SENT TO cc \\ cc -s \!*.c -o \!* \\ if (-e \!*) chmod 311 \!* \\ endif"'