public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: Fails to launch batch script in some directories
Date: Mon, 23 Apr 2018 17:20:00 -0000	[thread overview]
Message-ID: <4d7ffd56-e849-6c01-e62b-e6bab629b9d6@SystematicSw.ab.ca> (raw)
In-Reply-To: <20180423084451.GT15911@calimero.vinschen.de>

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

  reply	other threads:[~2018-04-23 17:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Alexpux/MSYS2-packages/issues/1225@github.com>
2018-04-20 12:33 ` David Macek
2018-04-20 13:11   ` Brian Inglis
2018-04-20 13:11   ` Corinna Vinschen
2018-04-21 15:39     ` Brian Inglis
2018-04-23  6:43       ` David Macek
2018-04-23  8:45         ` Corinna Vinschen
2018-04-23 17:20           ` Brian Inglis [this message]
2018-04-24  7:55             ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d7ffd56-e849-6c01-e62b-e6bab629b9d6@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).