Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!pilchuck!amc-gw!thebes!quick!srg From: srg@quick.COM (Spencer Garrett) Newsgroups: comp.unix.wizards Subject: Re: csh problem involving nested ifs? Message-ID: <3171@quick.COM> Date: 16 Jul 89 06:58:37 GMT References: <20243@adm.BRL.MIL> <5016@ficc.uu.net> Organization: Quicksilver Engineering, Seattle Lines: 16 In article <5016@ficc.uu.net>, peter@ficc.uu.net (Peter da Silva) writes: -> generate_a_list_of_file_names | -> while read FNAME -> do -> do_something_with FNAME -> done -> -> is second nature. And it's impossible in csh without massive inconvenience. -> By comparison, having TEST and EXPR builtin is a minor optimisation. What are you talking about? It's easy and much more natural under csh. foreach fname (`generate_a_list_of_file_names`) do_something_with_fname end