http://bugs.winehq.org/show_bug.cgi?id=20161
Summary: cmd can't handle echo commands containing quotes and redirection Product: Wine Version: 1.1.30 Platform: PC URL: ftp://ftp.gnu.org/pub/gnu/gcl/binaries/stable/gcl_2.6. 6.mingw32_cltl1_japi_20050210.exe OS/Version: Linux Status: NEW Keywords: download, Installer Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
The installer for gnu common lisp (ftp://ftp.gnu.org/pub/gnu/gcl/binaries/stable/gcl_2.6.6.mingw32_cltl1_japi_20050210.exe) runs a batch file which has the line
C:\Progra~1\GCL-2.6.6-CLtL1\lib\gcl-2.6.6\unixport>echo (setq si::*system-directory* (namestring(truename (make-pathname :name nil :type nil :defaults (si::argv 0))))) (si::save-system "modified.exe") | saved_gcl.exe
So I tried the short batch file
echo (si::save-system "modified.exe") > echo.txt
It fails to create echo.txt unless you remove the quotes.
[Here's how I happened to try the windows version of gnu common lisp on wine: In http://www.bautforum.com/science-technology/94008-free-mathematica-clone.htm... someone said "I have not heard of much success using WINE... of late...it seems to be somewhat defunct(?)" Bleah. So I tried running wxmaxima in wine. It aborts immediately because its lisp interpreter tries to allocate all of RAM, and fails. The interpreter seems to be a fork of GCL, so I went and tried GCL itself, and ran into the above installer problem.]
http://bugs.winehq.org/show_bug.cgi?id=20161
Peter Dons Tychsen donpedro@tdcadsl.dk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |donpedro@tdcadsl.dk
--- Comment #1 from Peter Dons Tychsen donpedro@tdcadsl.dk 2009-10-03 19:22:01 --- The code to decide if a quote was an end quote or a begin code was a bit too simple. I have created a new function to do the worked and added more rules which decide if a quote is one or the other.
/pedro
http://bugs.winehq.org/show_bug.cgi?id=20161
--- Comment #2 from Peter Dons Tychsen donpedro@tdcadsl.dk 2009-10-03 19:28:15 --- Attaching patch sent to wine-patches.
http://bugs.winehq.org/show_bug.cgi?id=20161
--- Comment #3 from Peter Dons Tychsen donpedro@tdcadsl.dk 2009-10-03 19:29:40 --- Created an attachment (id=23901) --> (http://bugs.winehq.org/attachment.cgi?id=23901) cmd: Fix handling of quotes when line includes redirections and/or pipes.
http://bugs.winehq.org/show_bug.cgi?id=20161
--- Comment #4 from Austin English austinenglish@gmail.com 2009-12-22 21:52:42 --- Test added: http://code.google.com/p/winezeug/source/detail?r=897
Peter, would you mind resubmitting that patch?
http://bugs.winehq.org/show_bug.cgi?id=20161
--- Comment #5 from Dan Kegel dank@kegel.com 2009-12-22 22:43:20 --- It *was* committed... http://source.winehq.org/git/wine.git/?a=commitdiff;h=a78ccf11602215c51d664b... I haven't retested.
http://bugs.winehq.org/show_bug.cgi?id=20161
--- Comment #6 from Austin English austinenglish@gmail.com 2009-12-22 23:48:02 --- (In reply to comment #5)
It *was* committed... http://source.winehq.org/git/wine.git/?a=commitdiff;h=a78ccf11602215c51d664b... I haven't retested.
austin@midna:~$ wine cmd /c foo.bat Z:\home\austin>echo (si::save-system "modified.exe") austin@midna:~$ cat echo.txt (si::save-system "modified.exe")
Similar bugs remain, so I'm tempted to leave this open. See: http://winezeug.googlecode.com/svn/trunk/appinstall/scripts/cmd.ahk
specifically: todo_test_output("echo ""/?""", """/?"" `r`n","20161")
More clearly: wine cmd /c echo "/?" should return "/?" but instead returns /?.
http://bugs.winehq.org/show_bug.cgi?id=20161
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |cmd
http://bugs.winehq.org/show_bug.cgi?id=20161
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #7 from Jason Edmeades us@edmeades.me.uk 2010-01-06 18:26:40 --- Adding myself to the cmd bugs
http://bugs.winehq.org/show_bug.cgi?id=20161
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |us@edmeades.me.uk
--- Comment #8 from Jason Edmeades us@edmeades.me.uk 2010-09-06 14:28:13 CDT --- Patch submitted for this bug in tghe patchset starting http://www.winehq.org/pipermail/wine-patches/2010-September/092915.html
Patch set failed on WinNT4 so reworking slightly, but fixes for this defect are included in it.
http://bugs.winehq.org/show_bug.cgi?id=20161
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|us@edmeades.me.uk |wine-bugs@winehq.org
http://bugs.winehq.org/show_bug.cgi?id=20161
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f252e9dfc85303d645ec545f238 | |fd8ee11ff2497 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #9 from Jason Edmeades us@edmeades.me.uk 2012-10-03 15:59:27 CDT --- The 2 issues in comment 6 are resolved. One a while ago (no idea what), the cmd /c issue today. Resolving bug - if there are more different iassues please raise separate bugs and I'll work through them.
From todays git:
Z:\media\sf_wine>echo (si::save-system "modified.exe") > echo.txt
Z:\media\sf_wine>more echo.txt (si::save-system "modified.exe")
Z:\media\sf_wine>cmd /c echo "/?" "/?"
http://bugs.winehq.org/show_bug.cgi?id=20161
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2012-10-12 13:34:34 CDT --- Closing bugs fixed in 1.5.15.