[Bug 32679] cmd.exe Add support for || and &&

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Mar 21 13:09:54 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=32679

--- Comment #5 from Qian Hong <fracting at gmail.com> ---
(In reply to Qian Hong from comment #4)
> 
> --- snip ---
> ../../../tools/runtest -q -P wine -T ../../.. -M cmd.exe -p
> cmd.exe_test.exe.so batch && touch batch.ok
> batch.c:313: Test succeeded inside todo block: unexpected char 0x0 position
> -1 in line 414 (got 'foo3 not created', wanted 'foo3 not created')
> batch.c:313: Test failed: unexpected char 0x2d position 0 in line 416 (got
> '--- on failure conditional or', wanted 'foo4')
> --- snip ---

Simple case to reproduce:

1. Apply the patch
2. Run cmd
3. both `echo foo && echo bar` and `echo foo || echo bar` works fine
4. raise some error, for example, run `nonexistentcommand` in cmd
5. both `echo foo && echo bar` and `echo foo || echo bar` behaviors wrong this
time, the results are inverse.
`echo foo && echo bar` prints "foo", `echo foo || echo bar` prints "foo" and
"bar"

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list