ref: 32aff6e15dcabde2822abd06c8aa10ddc2e7144f mrsh/test/loop.sh -rw-r--r-- 163 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

n=asdf
echo start
while [ "$n" != "fdsa" ]; do
	echo "n: $n"
	n="fdsa"
	echo "n: $n"
done
echo stop

# Should exit immediately
while true
do
	exit
done