For this csh
script
#!/bin/csh
foreach file in (.)
echo "$file"
end
I get this error
foreach: Words not parenthesized.
How can I fix that?
cshlinuxshell
For this csh
script
#!/bin/csh
foreach file in (.)
echo "$file"
end
I get this error
foreach: Words not parenthesized.
How can I fix that?
Best Answer
There should be no
in
:Be sure to read Stop Using (and Teaching) C-Shell.