delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/26/14:41:21

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
References: <CAG2dRtE19ot_Tk46djXUOOyX_gNSqTMiVWdWPepmAAQfrvEVVA AT mail DOT gmail DOT com>
Subject: Re: Run command in new window
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019