Variables in scripts

Brian McGrew Brian at doubledimension.com
Fri Oct 8 15:38:56 UTC 2004


I'm asking this question here becuase what I have works on Solaris but not Redhat 7.3

I have a simple script:

#!/bin/sh

change=0

while [ $changed -eq 0 ];
do
	changed=1
	echo $changed
done

echo $changed
exit

When I come to the last echo $changed, it's back to 0.  Any idea why that is?  This works find on Solaris???

-brian

Brian D. McGrew        { brian at doubledimension.com || brian at visionpro.com }
---
> YOU!  Off my planet!




More information about the redhat-list mailing list