http://bugs.winehq.org/show_bug.cgi?id=19801
Summary: cygwin can't run a batch file from inside a shell script without explicit cmd /c Product: Wine Version: 1.1.27 Platform: PC OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Given the batch file foo.bat containing echo FOO and the shell script 'foo.sh' containing ./foo.bat the command ./foo.bat interactively will output FOO on both cygwin/windows and cygwin/wine, but the command sh foo.sh will produce FOO on cygwin/windows but will fail on cygwin/wine saying foo.sh: line 1: ./foo.bat: permission denied
This happens both in an interactive cygwin shell started under wineconsole, as well as the naked command $ wine ~/.wine/drive_c/cygwin/bin/sh foo.sh
which sometimes says permission denied, and sometimes says "bad address", e.g.
foo.sh: line 1: ./foo.bat: Bad address 13 [main] sh 50! _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) foo.sh: line 1: 50 Segmentation fault (core dumped) ./foo.bat
So the "permission denied" error might be a symptom of a crash, too.
This was found while trying to automate the chrome and firefox build setup procedures.
http://bugs.winehq.org/show_bug.cgi?id=19801
--- Comment #1 from butraxz@gmail.com 2013-08-05 12:24:28 CDT --- This ticket has not been updated for over 900 days. Development recommends to check the status on your bug every release or two and let to be known if the bug is still present. If not, mark it fixed.
Is this still an issue with 1.7.0 or higher ?
https://bugs.winehq.org/show_bug.cgi?id=19801
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #2 from André H. nerv@dawncrow.de --- This is fixed in wine-staging as of version 1.7.51
https://bugs.winehq.org/show_bug.cgi?id=19801
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com, | |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=19801
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #3 from super_man@post.com --- (In reply to André H. from comment #2)
This is fixed in wine-staging as of version 1.7.51
Can considered as staged then? Any idea what's the patch that fixes this?
https://bugs.winehq.org/show_bug.cgi?id=19801
--- Comment #4 from Qian Hong fracting@gmail.com --- I think it is this one: https://github.com/wine-compholio/wine-staging/blob/master/patches/kernel32-...
https://bugs.winehq.org/show_bug.cgi?id=19801
Andreas Gnau Rondom@Rondom.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Rondom@Rondom.de
https://bugs.winehq.org/show_bug.cgi?id=19801
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/kernel32-COMSP | |EC
https://bugs.winehq.org/show_bug.cgi?id=19801
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/kernel32-COMSP |er/patches/kernel32-COMSPEC |EC |
https://bugs.winehq.org/show_bug.cgi?id=19801
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |279ac253e5aa7132ec4960af175 | |115befcdfefd0 Resolution|--- |FIXED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by https://source.winehq.org/git/wine.git/?a=commit;h=279ac253e5aa7132ec4960af1...
https://bugs.winehq.org/show_bug.cgi?id=19801
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.16.