Comment 6 for bug 349532

Revision history for this message
Ingo Strüwing (ingo-struewing) wrote : Re: [Bug 349532] Re: bzr always returns exit code 0 on win32

Hi all,

PhiLho, 30.06.2009 11:10:

...
>> cat Test.cmd
> @echo off
> bzr pull FOO
> ECHO ERRORLEVEL = %ERRORLEVEL%
>
>> Test.cmd
> bzr: ERROR: Not a branch: "E:/Dev/PhiLhoSoft/Lua/FOO/".
> ERRORLEVEL = 3

Found it: I had /usr/local/bin/bzr (Cygwin notation). I contained:

python C:/Python25/Scripts/bzr "$@" |tr -d '\r'

That is, it tried to get rid of carriage return in the output from bzr.
I use to save bzr output into log files. The carriage returns are pretty
disturbing in 'vi' or 'emacs' editors.

I'll find a way to get rid of the characters and still preserve the exit
code.

Thanks for your patience. Please close the bug.

Regards
Ingo
--
Ingo Strüwing, Database Group
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Häring HRB München 161028