[Bug 46033] New: Execution of commands that contain special symbols will be truncated.

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Oct 22 03:58:28 CDT 2018


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 at winehq.org
          Reporter: yanjie875077968 at 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.


More information about the wine-bugs mailing list