From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109943 invoked by alias); 23 Apr 2018 17:20:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 109930 invoked by uid 89); 23 Apr 2018 17:20:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy= X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Apr 2018 17:20:26 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with ESMTP id Af8YfOUgybrv9Af8ZfrRjZ; Mon, 23 Apr 2018 11:20:24 -0600 X-Authority-Analysis: v=2.3 cv=JOMVTfCb c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=YvZw3cjsra2QTJNbgogA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Fails to launch batch script in some directories To: cygwin@cygwin.com References: <76873039-f459-5534-ce8a-bb8fcbd35274@gmail.com> <20180420131111.GS15911@calimero.vinschen.de> <2325202b-1fb7-dbc9-9738-8934d3949fcb@SystematicSw.ab.ca> <71792648-0698-e407-ac67-244ddab446b3@gmail.com> <20180423084451.GT15911@calimero.vinschen.de> From: Brian Inglis Message-ID: <4d7ffd56-e849-6c01-e62b-e6bab629b9d6@SystematicSw.ab.ca> Date: Mon, 23 Apr 2018 17:20:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180423084451.GT15911@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfEKfdJ2AhZgBTxsfq7Xl8GzwjBODHYzjyTU3VEFu/61LiyFDBDvVXVeYAXi6VTm6pb01J53dNDtahCL59FToc8+cYwAyMgDDFQLFtReqZZX7U7zdVwA5 5wCPG+LpRAiD3BeO3n0gcrEw+Pc45UHid7eaghDdhbGCv+WzzO9ESAhWW6b5vu+UVgnOQF/n7jT18w== X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00286.txt.bz2 On 2018-04-23 02:44, Corinna Vinschen wrote: > On Apr 23 08:43, David Macek wrote: >> On 21. 4. 2018 17:38, Brian Inglis wrote: >>> See my other post in this thread where strace shows @ handling is not involved, >>> as the script directory and name are normalized and converted to a win32 path >>> correctly, but child_info_spawn::worker does not appear to quote args with >>> spaces (or apostrophes) when building the command line, despite the comment near >>> the top of the function. >> Do you have a test case for this? In my testing, paths with spaces (like >> 'x y' instead of '@ x') work just fine. > Brian has a point though. It's not a space *in* a filename, it's a > *trailing* space. And that points to the cause of the problem: No trailing space - middle char - the directory name was exactly as in the OP: ".../@ x/" - see strace output. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple