General comment: (t)csh and (ba)sh are very different internally. The fact that simple things work the same misleads people into believing that they are compatible. They are not. My personal solution is to use exactly one shell, and about 20 years ago I standardized on bash. Others swear by (pd-) ksh or zsh, and several others. But pick one and get good at it.Noticed that with sh works perfectly:
Yeah that works if you put that in a file. I guess you can't do it one-liner with tcsh.";" is the problem - you will need to use more lines for your script:
Code:#!/bin/tcsh foreach VALUE (`some program`) echo $VALUE end