https://bugs.winehq.org/show_bug.cgi?id=57795
Bug ID: 57795 Summary: cmd lacks support for right-to-left handle redirection (2<&1) Product: Wine Version: unspecified Hardware: x86-64 URL: https://github.com/curl/curl OS: FreeBSD Status: NEW Keywords: source Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: damjan.jov@gmail.com
When compiling the Windows version of Curl from Wine + MS Platform SDK, the build breaks when copying the binaries to destination directories, because in https://github.com/curl/curl/blob/2ed232a4e66c7ecb75f1b7fc7623da967857ef04/w... (and other places) it does this:
@if exist $(LIB_DIROBJ)$(LIB_NAME_DLL) copy $(LIB_DIROBJ)$(LIB_NAME_DLL) $(DIRDIST)\bin\ /y >nul 2<&1
That "2<&1" at the end of the line breaks it. Wine's cmd only supports redirections in the opposite direction, like "1>&2".
I am working on a patch.