they
Junior Member level 2
When I write a foreach loop as below:
#######################################
#!/bin/tcsh -f
foreach file (\
a\
b\
c\
)
commands
.......
......
......
end
exit 0
################################
The script always executes the first file (a) only, after that it will report a message:
"Too many ')' s."
and stop the script.
May I know that what is the reason of that?
#######################################
#!/bin/tcsh -f
foreach file (\
a\
b\
c\
)
commands
.......
......
......
end
exit 0
################################
The script always executes the first file (a) only, after that it will report a message:
"Too many ')' s."
and stop the script.
May I know that what is the reason of that?