How Does One Change Variables That Are Set From A Sub-Shell
Maarten Litmaath
maart at cs.vu.nl
Wed Nov 22 07:15:55 AEST 1989
In article <1989Nov21.052026.11968 at athena.mit.edu> jik at athena.mit.edu (Jonathan I. Kamens) writes:
\... csh/tcsh doesn't support multi-line aliases using
\"if", so there's no way to do the "else" part in an alias.
Is that a fact?
% alias z 'if (! -e \!^) set status=1 && echo yes || echo no'
% z /
yes
% z /etc/foobar
no
Allright, it doesn't contain the word "else" and it's ugly, but don't you
write off our beloved csh that fast, sonny! :-)
--
[...] like a roving gang. "Ah, here's a NEW almost-empty group to post train
schedules and core dumps in!" (Joe Buck) | maart at cs.vu.nl, mcsun!botter!maart
More information about the Comp.unix.questions
mailing list