I've seen few examples about the foreach in tcsh, all of them
are broken to a script and over more lines. I wanted to execute the
stuff as a handy one liner but I get as an output
so what gives?
As a shell script this works:
foreach x ( 1 2 3 )
As a one liner this prompts "foreach?"
foreach x ( 1 2 3 );echo $x;end
Where is the mistake?