Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re^2: csh question Message-ID: <2614@solo1.cs.vu.nl> Date: 25 May 89 15:31:39 GMT References: <19712@adm.BRL.MIL> <1651@zaphod.axion.bt.co.uk> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 22 \From article <19712@adm.BRL.MIL>, by nodak.edu>@adm.BRL.MIL: \... \% set ab = (spi kev ish ere) \% echo $ab[1] \spi \% alias test ' foreach x (1 2 3) \ \echo $ab[$x] \ \end ' \% test \? ? \DISCONNECTED from 04/118 It's a known csh bug. Compare with: % alias printf 'foreach i ( hello , world ! )\ echo $i\ end' % printf ? ? Segmentation fault (core dumped) -- "`Goto considered harmful' considered |Maarten Litmaath @ VU Amsterdam: harmful" considered harmful! |maart@cs.vu.nl, mcvax!botter!maart