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
foreach?
so what gives?
As a shell script this works:
Code:
#!/bin/tcsh
foreach x ( 1 2 3 )
echo $x
end
As a one liner this prompts "foreach?"
Code:
foreach x ( 1 2 3 );echo $x;end
Where is the mistake?