Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.unix.questions Subject: Re: Cshell question: taking wordlists as a single string Message-ID: Date: 17 Aug 90 15:15:51 GMT References: <3251@syma.sussex.ac.uk> Organization: Xenix Support, FICC Lines: 18 In article <3251@syma.sussex.ac.uk>, andy@syma.sussex.ac.uk (Andy Clews) writes: > I have a Csh script called "whatnews" ... > foreach i ($*) > Basically, then, can Cshell cope with word-lists as single arguments, or > must I write a C program to do the job (or try sh or ksh?) Try sh (not ksh, unless you don't care about portability: sh is more universally available). By and large, csh is a poor language for writing programs in. Sh is much better. for i do ... done This will properly handle your quoted args. -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com (currently not working) peter@hackercorp.com