Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Foreach: Words not parenthesized. csh

$
0
0
Just started shell scripting for the first time today :D Can anyone tell me why I get the error "foreach: Words not parenthesized." for my following code? The program takes in a list of arguments.

foreach card ($argv)
echo Hello
end

Viewing all articles
Browse latest Browse all 16232

Trending Articles