<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 7:47 PM, Nikos Alexandris <span dir="ltr"><<a href="mailto:nik@nikosalexandris.net" target="_blank">nik@nikosalexandris.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><u></u>
<div style="font-family:'Droid Sans Mono';font-size:9pt;font-weight:400;font-style:normal"><div class="im">
<p style="margin:0px;text-indent:0px">Nikos wrote:</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">> >> for Image in `echo $GIS_OPT_MSX | tr "," "\ "` ; do echo ${Image}  ; </p>
<p style="margin:0px;text-indent:0px">> >> done</p>
<p style="margin:0px;text-indent:0px"> </p>
</div><div class="im"><p style="margin:0px;text-indent:0px">Hamish wrote:</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">> Curly brackets do nothing to protect the contents of a variable. Using them</p>
<p style="margin:0px;text-indent:0px">> tricks new bash coders into thinking they are protected when they are not.</p>
<p style="margin:0px;text-indent:0px">> To avoid propagating the damaging myth, only use them when you actually need</p>
<p style="margin:0px;text-indent:0px">> them (eg to protect the variable name from following characters, not its</p>
<p style="margin:0px;text-indent:0px">> contents).</p>
<p style="margin:0px;text-indent:0px"> </p>
</div><p style="margin:0px;text-indent:0px">Maybe this should be added in /grass_addons/SUBMITTING_SCRIPTS ?</p><span class=""><font color="#888888">
<p style="margin:0px;text-indent:0px"></p></font></span></div></blockquote><br>Hamish and Nikos, SUBMITTING is a great idea. That's the best place. And once #2103 will be solved it will be ideal. The document can be much longer then now, I believe.<br>

</div><div class="gmail_quote"><br></div><div class="gmail_quote">I'm just not sure if this is for addons or trunk but just but it anywhere for #2103 they might be merged.</div><div class="gmail_quote"><br><div><a href="https://trac.osgeo.org/grass/ticket/2103">https://trac.osgeo.org/grass/ticket/2103</a><span style="font-family:'Droid Sans Mono';font-size:12px"><br>

</span></div><div><br></div><div>And about Bash versus Python, I agree, I feel it the same, but at the end, I always ends with Python. By the way, there is actually one thing which is sometimes used and that is generation of bash code/script in Python and then running it using bash command. Bit strange but powerful.</div>

<div><br></div><div>Vaclav</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-family:'Droid Sans Mono';font-size:9pt;font-weight:400;font-style:normal">

<span class=""><font color="#888888"><p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Nikos</p>
<p style="margin:0px;text-indent:0px"> </p></font></span></div></blockquote></div><br></div></div>