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"><<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@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 class="HOEnZb"><div class="h5"><br>
On 17 November 2012 07:24, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>> wrote:<br>
><br>
> Hi. The following script:<br>
><br>
> # run this script from build/ subdirectory, so vmVersionInfo.h will be placed in build dir<br>
><br>
> URL=`git config --get remote.origin.url`<br>
> COMMIT=`git show HEAD --pretty="Commit: %H Date: %ci By: %cn <%cE>" | head -n 1`<br>
><br>
> echo -n "#define REVISION_STRING \"$URL $COMMIT " > vmVersionInfo.h<br>
> test -n "${BUILD_NUMBER}" && echo -n "Jenkins build #${BUILD_NUMBER}" >> vmVersionInfo.h || echo<br>
> echo "\"" >> vmVersionInfo.h<br>
><br>
><br>
> fails in 10.6.8 because the result is:<br>
><br>
> -n #define REVISION_STRING "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 <<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>><br>
><br>
> "<br>
><br>
> (notice the -n at the beginning)<br>
><br>
> This -n is the one that is in the first echo: echo -n "#define REVISION_STRING \"$URL $COMMIT " > vmVersionInfo.h<br>
><br>
> What is weird is that script works in Lion....<br>
><br>
> So, any workaround that could work in all OS?<br>
><br>
</div></div>what shell you using?<br>
<span class="HOEnZb"><font color="#888888"><br>
> --<br>
> Mariano<br>
> <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
><br>
><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>