6
while echo "previous-variable = $previous"
9
[ "$var1" != end ] # Keeps track of what $var1 was previously.
10
# Four conditions on "while", but only last one controls loop.
11
# The *last* exit status is the one that counts.
13
echo "Input variable #1 (end to exit) "
15
echo "variable #1 = $var1"
18
# Try to figure out how this all works.
19
# It's a wee bit tricky.