stuart (06/23/82)
For immediate loops, I use % csh -s << xx & and then I type in my loop. for example: a: ps sleep 5 goto a: xx I can alias the 'csh -s << xx &' part but when I include in the alias the rest of the commands, we have problems. The line-terminator character can be surrounded with double quotes to get the seperate lines into the alias. And the csh will accept most commands like this. But the labels (e.g. a:) get thrown out because the shell thinks there are too many arguments on the line. There aren't but the '\' character might be confusing csh. Without getting too involved with the csh source code, I would guess that if there is an easy way to fix this, it would be in the function syn3 in parse.c. Of course, labels are unnecessary for looping, but it still looks bogus. What do the experts say?