http://bugs.winehq.org/show_bug.cgi?id=16214
Summary: Copy command does not work as expected Product: Wine Version: 1.0.1 Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: dos AssignedTo: wine-bugs@winehq.org ReportedBy: scott@open-vote.org
From Launchpad: https://bugs.edge.launchpad.net/ubuntu/+source/wine/+bug/272921
In Windows, the COPY command run in a command prompt allows users to concatenate files by using a plus ("+") operator, for example:
copy file1+file2 outfile
In wine's cmd.exe, it seems to read file1+file2 as a single path and therefore outputs a "Path Not Found". Also, it does not recognize the "con" keyword used to represent stdout/stdin. Therefore another method of concatenating files:
copy file1 outfile copy file2 con >> outfile
does not work either.
My Ubuntu version is 8.04, AMD64 architecture, though I have seen the same issue on the x86 version as well.
http://bugs.winehq.org/show_bug.cgi?id=16214
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Platform|Other |PC OS/Version|other |Linux
http://bugs.winehq.org/show_bug.cgi?id=16214
--- Comment #1 from Austin English austinenglish@gmail.com 2009-05-29 12:20:13 --- Is this still an issue in current (1.1.22 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=16214
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #2 from André H. nerv@dawncrow.de 2009-06-01 08:29:16 --- (In reply to comment #1)
Is this still an issue in current (1.1.22 or newer) wine?
Yes, it is. I am working on it.
http://bugs.winehq.org/show_bug.cgi?id=16214
Joerg Schiermeier newsletter@Schiermeier-Software.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |newsletter@Schiermeier-Soft | |ware.de
--- Comment #3 from Joerg Schiermeier newsletter@Schiermeier-Software.de 2009-10-03 19:17:29 --- (In reply to comment #2)
(In reply to comment #1)
Is this still an issue in current (1.1.22 or newer) wine?
Yes, it is. I am working on it.
And still present in wine v1.1.30.
also this will not work
H:\test> copy /b infile1.bin + infile2.bin + infile3.bin outfile.bin
Same like the first example but with spaces arount the '+' and binary concatenation.
The resultfile is only the first file 'infile1.bin' wrongly named '+' (The filename is the plus sign). See this example:
---<example>--- see Attachment ---</example>---
http://bugs.winehq.org/show_bug.cgi?id=16214
--- Comment #4 from Joerg Schiermeier newsletter@Schiermeier-Software.de 2009-10-03 19:22:27 --- Created an attachment (id=23900) --> (http://bugs.winehq.org/attachment.cgi?id=23900) Example of a 'copy /b' failure
As I wrote in my comment here is an example of the 'copy /b' failure which ist related with the wrong/missing(?) interpretation of the 'plus sign' in cmd.exe.
http://bugs.winehq.org/show_bug.cgi?id=16214
rusivi rusivi1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rusivi1@gmail.com
--- Comment #5 from rusivi rusivi1@gmail.com 2010-09-13 18:45:13 CDT --- Does this occur in newest WINE?
http://bugs.winehq.org/show_bug.cgi?id=16214
butraxz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |butraxz@gmail.com
--- Comment #6 from butraxz@gmail.com 2012-05-18 06:05:32 CDT --- This bug has not been updated for three years and OP by four. Is this still an issue i current (1.5.4) or newer wine ? You may also close this as abandoned if you feel that that this is issue is no longer relevant to you.
http://bugs.winehq.org/show_bug.cgi?id=16214
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2012-07-01 16:52:20 CDT --- Still present in wine 1.5.7.
http://bugs.winehq.org/show_bug.cgi?id=16214
SDoehla doe@steinselb.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |doe@steinselb.de
--- Comment #8 from SDoehla doe@steinselb.de 2012-10-01 17:42:27 CDT --- (In reply to comment #7)
Still present in wine 1.5.7.
and also in Wine 1.5.12.
Seriously, this bug stops people from working with existing DOS batch scripts that make extensive use of this feature to append files. Though Wine works great for most applications, BAT scripting support is a very basic functionality that I don't see as a wishlist feature, but essential.
http://bugs.winehq.org/show_bug.cgi?id=16214
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com Component|dos |cmd
http://bugs.winehq.org/show_bug.cgi?id=16214
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk Summary|Copy command does not work |Copy command does not |as expected |support CON or CON:
--- Comment #9 from Jason Edmeades us@edmeades.me.uk 2012-10-12 05:03:16 CDT --- Support for copy with + or * providing concatentation is covered under bugs 26943 and 27899, which I have just sent in a patchset for, so renaming this bug to the residual problem of support for CON (and CON:) and is similar to 21394 which reports the same issue using NUL (and NUL:)
http://bugs.winehq.org/show_bug.cgi?id=16214
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |32183
http://bugs.winehq.org/show_bug.cgi?id=16214
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=16214
--- Comment #10 from Jason Edmeades us@edmeades.me.uk 2012-11-19 15:07:26 CST --- Patch sent, you need both of http://www.winehq.org/pipermail/wine-patches/2012-November/120069.html http://www.winehq.org/pipermail/wine-patches/2012-November/120075.html
http://bugs.winehq.org/show_bug.cgi?id=16214
--- Comment #11 from Jason Edmeades us@edmeades.me.uk 2012-11-20 15:24:58 CST --- First patch is committed, problems with second patch.
http://bugs.winehq.org/show_bug.cgi?id=16214
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #12 from Jason Edmeades us@edmeades.me.uk 2013-06-03 18:02:12 CDT --- The last patch in the series was wrong, and Eric submitted a few attempts to fix this in the console code in December 2012. The most recent set is here: http://www.winehq.org/pipermail/wine-patches/2012-December/121090.html This had a problem due to a hanging process (AJ) http://www.winehq.org/pipermail/wine-devel/2013-January/098395.html (Eric) http://www.winehq.org/pipermail/wine-devel/2013-January/098425.html
Eric sent in a patch for the hanging process: http://www.winehq.org/pipermail/wine-patches/2013-January/121501.html which was committed http://www.winehq.org/pipermail/wine-cvs/2013-January/093158.html
However the main patchset was not - maybe it just needed resending.
Eric - Do you know what happened here, was it simply a case of not resending it after the extra fix was submitted?
For reference, as far as I know / from testing that patch set, the windows cmd.exe will work fine in the 'copy con filename' mode once this patchset is applied.
https://bugs.winehq.org/show_bug.cgi?id=16214
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|us@edmeades.me.uk |wine-bugs@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=16214 Bug 16214 depends on bug 32183, which changed state.
Bug 32183 Summary: Cannot open console device read only, then read from it to get input https://bugs.winehq.org/show_bug.cgi?id=32183
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=16214
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #13 from Fabian Maurer dark.shadow4@web.de --- Still doesn't work properly as of wine-8.20