Path: utzoo!attcan!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: How Does One Change Variables That Are Set From A Sub-Shell Keywords: csh, programs, lunch, variables, set Message-ID: <4591@solo11.cs.vu.nl> Date: 21 Nov 89 20:15:55 GMT References: <1989Nov20.190903.27550@wucs1.wustl.edu> <1989Nov21.052026.11968@athena.mit.edu> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatica, Amsterdam Lines: 17 In article <1989Nov21.052026.11968@athena.mit.edu> jik@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@cs.vu.nl, mcsun!botter!maart