#600350 Could bash remember the VARIABLES into WHILE

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Yellowprotoss
Date:
2010-10-16 10:42:05 UTC
Severity:
wishlist
#600350#5
Date:
2010-10-16 10:40:41 UTC
From:
To:
	cat $FILE | while read $i ; do
			if [ "$THECMD" != "" ] ; then
				 Exec "$THECMD $i"
				echo "$i"
			fi
		done

so in this script, no way to get THECMD passed into while.

Please update the code to let WHILE remember all variables

Thanks a lot for your support

Best regards