~emersion/mrsh

ea3edb5500a056b1cfa088d1c78f58e754689994 — emersion 2 years ago ce21d9a
test: add exit in loop test

Borrowed from https://github.com/emersion/mrsh/issues/35
1 files changed, 13 insertions(+), 2 deletions(-)

M test/data/loop.sh
M test/data/loop.sh => test/data/loop.sh +13 -2
@@ 1,5 1,16 @@
#!/bin/sh

while [ $n -ne 10 ]; do
	echo a
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