X-Spam-Check-By: sourceware.org Message-ID: <453597FA.4060806@cygwin.com> Date: Tue, 17 Oct 2006 22:56:58 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Bash fails to run .bat file with spaces in pathname and argument References: <452D5DF0 DOT 9070605 AT cs DOT berkeley DOT edu> <452D8FE7 DOT 9090705 AT byu DOT net> <452DABED DOT 5030409 AT cs DOT berkeley DOT edu> <5c8adab70610112003m34b68694n3a80a05a1187bce4 AT mail DOT gmail DOT com> <45358375 DOT 4080805 AT cs DOT berkeley DOT edu> In-Reply-To: <45358375.4080805@cs.berkeley.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com . Reformatted. Johnathon Jamison wrote: > Sean Daley wrote: >> >> I'm not sure if it was ever fully decided that this was a cygwin bug >> since >> windows cmd can also exhibit similar behavior. >> >> I was the original poster back then. I eventually just worked around >> the issue by >> writing a native executable that did the same things the batch job was >> supposed to do. Chris' suggestion of shell scripts also works as well. >> >> Sean >> > I think that you are right in saying this is not a cygwin bug. Upon > further investigation, it seems it is a cmd misfeature. Would a patch > to oddly quote things that spawn_guts "knew" would be passed off to cmd > be accepted, given that it would not be a fix, but a kludgy workaround? > Or would it be rejected on the grounds that it would possibly introduce > instability and future traps? Given your description, I think the patch would likely be rejected. Certainly if there were a reasonable patch that addressed this issue in a maintainable way, then it would certainly be considered. But it's impossible to say for sure what will and will not be accepted without a patch on which to judge the merits. It is fair to say that if you feel the patch is dubious, others will likely agree. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/