I am my own infinite loop checker. If we had a machine to wipe our bottoms, what would we do when the electricity went out?

If you want the script editor to indent your code, press the {} button.

Originally Posted By: Knoeki
great idea, argv0 :_)

another thing that I found, which may or may not be a feature, is that the following will crash:

Code:
var -u5 %x 1
while (%x == 1) {
   noop
}


now, this might be a bad example, but the point is, why can't we do while loops that loop infinitely, until a variable is unset, as per example, or when an identifier changes value? maybe I want to have something loop for 5 seconds...


That is a paradox. A while loop either loops infinitely or it stops at a certain point.

Your code is a bad idea. Try this.

set -u5 %xy $true
while(%xy) {
do commands
}

But, as mentioned, there are better ways to handle this sort of thing.