From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26622 invoked by alias); 26 Dec 2017 19:41:10 -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 26614 invoked by uid 89); 26 Dec 2017 19:41:10 -0000 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 Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Dec 2017 19:41:09 +0000 Received: by mail-oi0-f54.google.com with SMTP id x20so24189379oix.12 for ; Tue, 26 Dec 2017 11:41:08 -0800 (PST) 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) Received: from mSw ([2605:6000:9fc0:56:c54d:2844:d0c:ba]) by smtp.gmail.com with ESMTPSA id p100sm6965816ota.62.2017.12.26.11.41.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Dec 2017 11:41:06 -0800 (PST) Message-ID: <5a42a5d2.6d249d0a.a7449.95a4@mx.google.com> Date: Tue, 26 Dec 2017 23:44:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com References: 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) X-SW-Source: 2017-12/txt/msg00263.txt.bz2 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