zsh but Luc is not (I think) and he got the same problem.<div>Do you think this can be the problem?<br><br><div class="gmail_quote">On Sat, Nov 17, 2012 at 12:58 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 17 November 2012 07:24, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi. The following script:<br>
&gt;<br>
&gt; # run this script from build/ subdirectory, so vmVersionInfo.h will be placed in build dir<br>
&gt;<br>
&gt; URL=`git config --get remote.origin.url`<br>
&gt; COMMIT=`git show HEAD --pretty=&quot;Commit: %H Date: %ci By: %cn &lt;%cE&gt;&quot; | head -n 1`<br>
&gt;<br>
&gt; echo -n &quot;#define REVISION_STRING \&quot;$URL $COMMIT &quot; &gt; vmVersionInfo.h<br>
&gt; test -n &quot;${BUILD_NUMBER}&quot; &amp;&amp; echo -n &quot;Jenkins build #${BUILD_NUMBER}&quot; &gt;&gt; vmVersionInfo.h || echo<br>
&gt; echo &quot;\&quot;&quot; &gt;&gt; vmVersionInfo.h<br>
&gt;<br>
&gt;<br>
&gt; fails in 10.6.8  because the result is:<br>
&gt;<br>
&gt; -n #define REVISION_STRING &quot;git://<a href="http://gitorious.org/cogvm/blessed.git" target="_blank">gitorious.org/cogvm/blessed.git</a> Commit: e0c448cf8de6377605d8831ae20f72565c1922ca Date: 2012-11-14 15:34:11 +0100 By: Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt;<br>

&gt;<br>
&gt; &quot;<br>
&gt;<br>
&gt; (notice the -n at the beginning)<br>
&gt;<br>
&gt; This -n is the one that is in the first echo: echo -n &quot;#define REVISION_STRING \&quot;$URL $COMMIT &quot; &gt; vmVersionInfo.h<br>
&gt;<br>
&gt; What is weird is that script works in Lion....<br>
&gt;<br>
&gt; So, any workaround that could work in all OS?<br>
&gt;<br>
</div></div>what shell you using?<br>
<span class="HOEnZb"><font color="#888888"><br>
&gt; --<br>
&gt; Mariano<br>
&gt; <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>
</div>