http://bugs.winehq.org/show_bug.cgi?id=21145
Summary: cmd if /I unsupported Product: Wine Version: 1.1.35 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, testcase Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
/i should do a case insensitive search, so: IF /i bar==BAR echo bar1 should return 'bar1'. On wine, fails.
http://bugs.winehq.org/show_bug.cgi?id=21145
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #1 from Dan Kegel dank@kegel.com 2010-01-01 13:10:59 --- See also http://ss64.com/nt/if.html
http://bugs.winehq.org/show_bug.cgi?id=21145
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |cmd
http://bugs.winehq.org/show_bug.cgi?id=21145
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #2 from Jason Edmeades us@edmeades.me.uk 2010-01-06 18:26:42 --- Adding myself to the cmd bugs
http://bugs.winehq.org/show_bug.cgi?id=21145
--- Comment #3 from Austin English austinenglish@gmail.com 2010-01-19 23:48:57 --- Actually, I was a bit mistaken. Wine defaults to case insensitive: austin@laptop:~$ wine cmd CMD Version 1.1.36
Z:\home\austin>if bar==bar echo 1 1
Z:\home\austin>if bar==BAR echo 1 1
Z:\home\austin>if /i bar==BAR echo 1 1
Z:\home\austin>if /i bar==bar echo 1 1
So there's actually two bugs, wine should be case sensitive by default, and if /i is invoked, be case insensitive.
http://bugs.winehq.org/show_bug.cgi?id=21145
--- Comment #4 from Trey Hunner treyhunner@gmail.com 2010-02-02 03:26:06 --- Created an attachment (id=26022) --> (http://bugs.winehq.org/attachment.cgi?id=26022) Test cases for 'if /i' behavior
I have attached test cases to demonstrate the behavior of 'if /i' and case sensitivity when using the == operator.
http://bugs.winehq.org/show_bug.cgi?id=21145
Trey Hunner treyhunner@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |treyhunner@gmail.com
--- Comment #5 from Trey Hunner treyhunner@gmail.com 2010-02-02 03:31:04 --- I just posted a patch for this: http://www.winehq.org/pipermail/wine-patches/2010-February/084413.html
http://bugs.winehq.org/show_bug.cgi?id=21145
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from Juan Lang juan_lang@yahoo.com 2010-02-02 14:58:51 --- Fixed by commit afb374b7aa3f16b4e0de574314bef11b597a4363.
http://bugs.winehq.org/show_bug.cgi?id=21145
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2010-02-05 11:39:10 --- Closing bugs fixed in 1.1.38.