can someone clarify this for me.
AFAIK, any variables in child processes are not passed to the parent. this includes the value ofvariables in any do-done constructs (while, for, until loops).
i've seen this first hand when i started scripting, the values of variables in loops weren't being passed on to the main body of the script.
however, i was writing something today and absentmindedly did this
and the script actually gave me the value of $number. what gives?
while true; do
if (( $number > 100 )) || (( $number == 0 )); then