If you have Vim syntax highlighting enabled, the code example below will be highlighted incorrectly: 2, 3 and 4 lines (as well as the all lines below) will be all in blue as if they are comments. This happens because Vim considers everything after /* as a commentary.
1 2 3 4 |
for script in ${rpath}/*.mon.sh
do
$script ${1}
done |
Probably there is some proper way to fix it. I didn’t try to find it, because I don’t want to bother about it each time I run Vi on another server anyway. I found that the easiest way is to add a closing sign at the end of such lines, like this:
1 2 3 4 |
for script in ${rpath}/*.mon.sh #*/
do
$script ${1}
done |
Home
Contacts
Downloads
RoR
Linux
Notes
ERR
Servers
Русский
Comment it: