X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:references:subject
	:content-type; q=dns; s=default; b=Vez6VAaEmbWbGL9F0TzV7P3GT5dPz
	X/PNVwMzd2wggPKe2xHCrHMJ3UTtLyDlwRToawVu2T+WJ4yB6PYGP82kVHTeyP/b
	BIIPIcpLXGf6ZLNCiVFjJ+dhqw83m1ghSOrLpdb/2/ZZF2UwZv3WKQMgBFNKq4Dz
	Jl2G7h1HOOCww0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:references:subject
	:content-type; s=default; bh=mzn0vnOezbCXOws825aUNjMzcpk=; b=R+o
	DbT9HKqSecErol2typpCQmL6odNi7Bros0fgGKxBZfujVbW6QzfQl2oApxwMZEH5
	gpa2hVu8015od5rdq5bB2XgVr4nRkONZXom1yOSm0gppPZ3pcaXMZmCTpZz/heZt
	UtQ82Zz57k8PXqG+azrMuWkAFX0yWBuOOF8xdc60=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*UA:github.com, H*M:google
X-HELO: mail-oi0-f54.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:message-id:date:from:to:references:subject         :user-agent;        bh=J1Pn/3PM240HpD8feOQ5HBB83eh1QFz3yW+vMQ/8kd4=;        b=YiSg7zQpLak6ZrjypP0KjLmGOhCtnwIx9xSnAQwHdlFaokb3ruZbOEGQLQmsMFZBrA         QmeqyEkW1QK8CuFaRMh9CEVgtNUAOMy+SSFbFnogepLqWRo4FftOm6r/6kzxeF/i1Rx9         mcOtZ1cjzaBFIwT2WJ33djWzAxFTMPWdpnhUK3fMboc6DP14ifFmbrEC4c3Vsasm4yLW         eXrlH4OknXcwB/mFMlHnDmdLEyEyxA63uTqcQTaU/TSVGZDohGxew8/O0zyghylQmoxb         stzr1SQwlDRyPQRlv6hxX7YRCwXbHkOJvJ7qIKkXYC13eZyaWAjsaDntiplZuI67O546         edLA==
X-Gm-Message-State: AKGB3mJuU2lkck5605qAOXWDuQMv/GjA9mO7u/IH9VJ/SHZwsGgLkK3j	oquetWYIpRbB6wsGr8pGaMLRMA==
X-Google-Smtp-Source: ACJfBouRcNjrTHx17PX+h8xgoHk7Qrc2jMI82iJW3X547gQtfdU0KGETFdYRzyRRsNnnDGm81Vv+qw==
X-Received: by 10.202.183.131 with SMTP id h125mr18555482oif.103.1514317267125;        Tue, 26 Dec 2017 11:41:07 -0800 (PST)
Message-ID: <5a42a5d2.6d249d0a.a7449.95a4@mx.google.com>
Date: Tue, 26 Dec 2017 11:41:06 -0800 (PST)
From: Steven Penny <svnpenn@gmail.com>
X-Google-Original-From: Steven Penny
To: cygwin@cygwin.com
References: <CAG2dRtE19ot_Tk46djXUOOyX_gNSqTMiVWdWPepmAAQfrvEVVA@mail.gmail.com>
Subject: Re: Run command in new window
Content-Type: text/plain; charset=utf8; format=flowed
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

On Tue, 26 Dec 2017 11:54:14, Dave Caswell wrote:
> $ cygstart -v bash -c \'echo 1\;read \'
> ShellExecute(NULL, "(null)", "bash", "-c 'echo 1;read '", "(null)", 1)
> By escaping the quotes and semicolon so they get passed along intact,
> the executed bash also gets an intact command string.

this is interesting, but it doesnt explain (or im not understanding) why it will
accept a quoted string and not an escaped one. in a normal setting, these
commands are identical:

    $ bash -c 'echo; read'
    + bash -c 'echo; read'

    $ bash -c echo\;\ read
    + bash -c 'echo; read'

but with cygstart this command works:

    cygstart bash -c '"echo; read"'

and this does not:

    cygstart bash -c 'echo\;\ read'


--
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

