tcsh How to execute foreach in subshell?
Hya,
Following is the digest of my code Code:
#!/bin/tcsh I can do Code:
myProgram inputfile | sort Code:
#!/bin/tcsh Question is How to send foreach to subshell? Or any other idea? My tcsh is 6.14.00 Astron 2005-3-15 (Debian etch one) Thanks Happy Penguins! |
Hi.
In Section 2b of http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ there is the statement: Quote:
You may have seen in man tcsh that foreach and end keywords must "appear in a single simple command on an input line". I'd be interested in hearing if there is a solution to your problem, but I don't think it would lure me into doing much scripting in tcsh. As you are no doubt weary of hearing: most people use Bourne family shells for scripting ... cheers, makyo |
All times are GMT -5. The time now is 10:18 AM. |