[Bug 46033] New: Execution of commands that contain special symbols will be truncated.
https://bugs.winehq.org/show_bug.cgi?id=46033 Bug ID: 46033 Summary: Execution of commands that contain special symbols will be truncated. Product: Wine Version: 3.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs(a)winehq.org Reporter: yanjie875077968(a)gmail.com Distribution: --- when i use the wine cmd, i find same command can't be run, but it can be run in winxp cmd. ➜ temp wine cmd Wine CMD Version 5.1.2600 (1.6.2) Z:\tmp\temp>dir_ny Volume in drive Z has no label. Volume Serial Number is 0000-0000 Directory of Z:\tmp\temp File not found. Z:\tmp\temp>./dir_ny Z:\tmp\temp>dir . Volume in drive Z has no label. Volume Serial Number is 0000-0000 Directory of Z:\tmp\temp 10/22/2018 4:50 PM <DIR> . 10/22/2018 4:50 PM <DIR> .. 10/22/2018 4:50 PM 471,040 cmd1.exe 10/22/2018 4:50 PM 7 dir_ny.bat 2 files 471,047 bytes 2 directories 9,204,056,064 bytes free Z:\tmp\temp>exit ➜ temp wine cmd1 Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. Z:\tmp\temp>dir_ny fixme:process:CmdBatNotification 1 Z:\tmp\temp>dir . Volume in drive Z has no label. Volume Serial Number is 0000-0000 Directory of Z:\tmp\temp 10/22/2018 04:50 PM <DIR> . 10/22/2018 04:50 PM <DIR> .. 10/22/2018 04:50 PM 471,040 cmd1.exe 10/22/2018 04:50 PM 7 dir_ny.bat 2 File(s) 471,047 bytes 2 Dir(s) 9,204,056,064 bytes free fixme:process:CmdBatNotification 0 i review the cmd code in version 3.18. there is a bug in line 1318. while (IsCharAlphaNumericW(whichcmd[count])) { the IsCharAlphaNumericW function not include "_", so when a command include a "_" will be truncated. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=46033 Zhiyi Zhang <zzhang(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang(a)codeweavers.com --- Comment #1 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- Confirmed with wine-3.19-17-g8533516988 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=46033 --- Comment #2 from Janne <janne.kekkonen(a)gmail.com> --- Created attachment 77814 --> https://bugs.winehq.org/attachment.cgi?id=77814 test_log Still issue with wine 9.0 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=46033 Eric Pouech <eric.pouech(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |eric.pouech(a)gmail.com --- Comment #3 from Eric Pouech <eric.pouech(a)gmail.com> --- looks to be fixed in Wine 10.16 (but likely actual fix is earlier):
echo @echo a>dir_ny.bat
dir_ny a
dir_ny.bat a
.\dir_ny.bat a
./dir_ny.bat a
./dir_ny a
.\dir_ny a
-- 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.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla