http://bugs.winehq.org/show_bug.cgi?id=18346
Summary: cmd does not support the "^" escape character Product: Wine Version: 1.1.20 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dima@gmail.com
In Windows' command line, the caret escapes the following character. For example:
echo a^&b
a&b
Wine's cmd, however, does not treat it as a special character:
echo a^&b
a^ File not found
http://bugs.winehq.org/show_bug.cgi?id=18346
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|-unknown |programs Ever Confirmed|0 |1 Keywords| |download
--- Comment #1 from Austin English austinenglish@gmail.com 2009-05-03 21:36:00 --- Confirming.
http://bugs.winehq.org/show_bug.cgi?id=18346
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #2 from Austin English austinenglish@gmail.com 2009-12-22 21:51:31 --- Test added: http://code.google.com/p/winezeug/source/detail?r=897
http://bugs.winehq.org/show_bug.cgi?id=18346
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #3 from Dan Kegel dank@kegel.com 2010-01-01 13:13:26 --- See also http://ss64.com/nt/syntax-esc.html and http://ss64.com/nt/setlocal.html
http://bugs.winehq.org/show_bug.cgi?id=18346
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |cmd
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #4 from Jason Edmeades us@edmeades.me.uk 2010-01-06 18:03:15 --- Created an attachment (id=25598) --> (http://bugs.winehq.org/attachment.cgi?id=25598) Patch
Does this help?
http://bugs.winehq.org/show_bug.cgi?id=18346
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #5 from Jason Edmeades us@edmeades.me.uk 2010-01-06 18:26:38 --- Adding myself to the cmd bugs
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #6 from Dima Ryazanov dima@gmail.com 2010-01-12 13:38:46 --- The patch seems to work for me. Thanks Jason!
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #7 from Dan Kegel dank@kegel.com 2010-01-12 13:40:28 --- Dima, what app or script are you running that needs this (and what other cmd bugs are you hitting)?
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #8 from Dima Ryazanov dima@gmail.com 2010-01-12 13:49:11 --- It's a SCons script that runs "cl", "link", "m4", etc. In this case, it needs to run something like:
m4 -DURL=http://example.com/?a=1&b=2&c=3 ...
So we escape the ampersands with ^. I guess it's not any more complex than my "echo a^&b" example.
The other bugs I've hit so far are: bug 21338 bug 21344
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #9 from Dan Kegel dank@kegel.com 2010-01-12 14:01:16 --- Thanks. I guess somebody should run SCons's own test suite on wine, so I've added it to http://wiki.winehq.org/UnitTestSuites (gyp's test suite already passes, and SCons should be very similar.)
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #10 from John Chow jkchow@ucla.edu 2010-03-14 17:59:34 --- Created an attachment (id=26811) --> (http://bugs.winehq.org/attachment.cgi?id=26811) Repackaged patch of Jason Edmeades along with test cases
Along with Jason Edmeades's patch, there is a test case added using the built-in test framework. Patch written with Wine version 1.1.40.
http://bugs.winehq.org/show_bug.cgi?id=18346
John Chow jkchow@ucla.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #26811|Repackaged patch of Jason |[1/2]Repackaged with test description|Edmeades along with test |cases |cases |
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #11 from John Chow jkchow@ucla.edu 2010-03-14 18:06:39 --- Created an attachment (id=26812) --> (http://bugs.winehq.org/attachment.cgi?id=26812) [2/2] Escapes newlines
This patch fixes the issue of escaping newlines. Note that this fix may cause a buffer overflow, hence the additional check of command size.
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #12 from Dan Kegel dank@kegel.com 2010-03-14 18:33:14 --- Thanks, John. FYI it's traditional to post the patches to wine-patches, and then paste in the URL of the archive of the post from http://www.winehq.org/pipermail/wine-patches/
http://bugs.winehq.org/show_bug.cgi?id=18346
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #13 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-05-30 07:32:53 CDT --- Confirmed in 1.3.21
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #14 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-07-25 12:03:44 CDT --- Testcases added to wine testsuite: http://source.winehq.org/git/wine.git/commitdiff/1e28bbb88ebef47dadced18c8ca...
http://bugs.winehq.org/show_bug.cgi?id=18346
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
http://bugs.winehq.org/show_bug.cgi?id=18346
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |21174
http://bugs.winehq.org/show_bug.cgi?id=18346
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andreas@braml.org
--- Comment #15 from Jason Edmeades us@edmeades.me.uk 2012-09-03 16:58:11 CDT --- *** Bug 31178 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=18346
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |us@edmeades.me.uk
http://bugs.winehq.org/show_bug.cgi?id=18346
--- Comment #16 from Bruno Jesus 00cpxxx@gmail.com 2012-09-26 14:50:02 CDT --- Patches commited: http://source.winehq.org/git/wine.git/commitdiff/d8c0fbcedc266fadcb48cd560ad... http://source.winehq.org/git/wine.git/commitdiff/2ff533c1f2c6b6054260d7a4481...
http://bugs.winehq.org/show_bug.cgi?id=18346
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #17 from Jason Edmeades us@edmeades.me.uk 2012-09-26 15:12:04 CDT --- Fixed by commits. Dima - if you can retry the scons suite it would be useful to get any cmd bugs raised whilst I am spending the time looking into it... I know its been a while to get this one committed!
http://bugs.winehq.org/show_bug.cgi?id=18346
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2ff533c1f2c6b6054260d7a4481 | |26a0d32015a0c CC| |00cpxxx@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=18346
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #18 from Alexandre Julliard julliard@winehq.org 2012-09-28 13:43:46 CDT --- Closing bugs fixed in 1.5.14.