csh problem involving nested ifs?

Spencer Garrett srg at quick.COM
Sun Jul 16 16:58:37 AEST 1989


In article <5016 at ficc.uu.net>, peter at 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



More information about the Comp.unix.wizards mailing list