<div dir="ltr">Because you are assigning the variable result of the executed expression.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 6:36 PM, Michael Havens <span dir="ltr"><<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">just starting with this so please, bear with me....<div><br></div><div>Anyways I am looking at this beginner's script:</div><div><br></div><div><div> #! /bin/bash</div><div> myvar=0</div><div> while [ $myvar -ne 20 ]<br></div><div> do</div><div> echo $myvar</div><div> myvar=$(( $myvar + 1 ))</div><div> done</div><div><br></div><div>Now my mind can wrap itself around everything in this script except for tis line:</div><div> </div><div> myvar=$(( $myvar + 1 ))<br></div><div><br></div><div>Where my difficulty arises is why the '$' before the '(('?</div><div>(it was geast fun running that script with a minus sign instead!)</div><div><div>:-)~MIKE~(-:</div></div>
</div></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>