[comp.unix.questions] Re^2: csh question

maart@cs.vu.nl (Maarten Litmaath) (05/25/89)

\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