delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/26/12:43:51

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:references:to:subject
:content-type; q=dns; s=default; b=jZeHf9W3ATevzbGfw8x1bdMfPBAkT
qgztmP97X/jZQ5XYi+j8xuFFTQF3UUxgwRhLnbEZfify+xHz3rEn1XOgA2rp7LIx
LM6X7WU7dVpOXylXM5Acli0lQXJ8q6mlOk+62KvS8jJoJCy71DMY5UUI9xcynDZL
WqzbvQsj/qbGJI=
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:references:to:subject
:content-type; s=default; bh=qE34nLmURKSVamLRCXbYgC9XmuQ=; b=Ixj
FU0uDcxUu6bo27KLKom0m75P+1C3PMkpBfcPzc8FEFcJSa/5uw1sc9CDEjPv2/BK
55DbbYMJTnd1QDyMHn4U6rPaybviv6Wu5bhzxrjs0zVl3E/yzKIrI9LQHL99YZ16
ZDIfBx2yIGSTwvWixBMf1hy8LPme6FJCGgzYVFhU=
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-f51.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:references:to:subject :user-agent; bh=gJ3/rFPkMuJRONoQf347ZsPw1cxWwJYyEfExchJRwNo=; b=T4fieB0RZsMx9WCwWBgwGd3ATkcvfi37VO5oOx1ny2NMPGpGTu6IsWJpms10ObWCU7 zqKu/AWOV/rQBvLTAnXRg7oOoOVM+uPJe4BCc0pg0QZewv5k62+szN1sSwkkkagUyoKE 0wC5+C4NlhfkgSvNS1a3Kli4IIjEaHdfxhWv+6EbBxAI40RWsw1iILO+Ii0WD36XHJOF wLam+u1PXyXDnZ9z1w5fI0ZaIfKr5UUmDm6Hxc36uQ5mV+LxbLI4LwBqidho513sGIis y6DiceuKB9lvTA0NO5Uo91nM6dVo2LCnXLWmUqXdE2gGrRNE04s/hCc9OErqI6w66wmD nVDg==
X-Gm-Message-State: AKGB3mKPgBHw4qPbB2KPI2xOlDF2wr2pMWUCzd7Up72Ko1t/xqwVAeva HdZ9L7oI+qix3FknBbJbxxX7BA==
X-Google-Smtp-Source: ACJfBoumM2xnNZjKW8OYIIDO6wWqmLiGe/zKrvhKsvVp+vI45CA9HtdpzqO58gHcQGZKIUAVl+gbAg==
X-Received: by 10.202.186.215 with SMTP id k206mr17193164oif.345.1514310216680; Tue, 26 Dec 2017 09:43:36 -0800 (PST)
Message-ID: <5a428a47.d0179d0a.4c14c.fe57@mx.google.com>
Date: Tue, 26 Dec 2017 09:43:35 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
References: <5a4087c1 DOT cdebca0a DOT a4e97 DOT 8eb3 AT mx DOT google DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Run command in new window
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

On Sun, 24 Dec 2017 21:08:17, Steven Penny wrote:
> that did it - thanks - this also works:
> 
>     cygstart bash '-c "echo hello; read z"'
> 
> seems like a problem with cygstart parser? here is the syntax:
> 
>     cygstart [OPTION]... FILE [ARGUMENTS]
> 
> so should support multiple arguments - this command works as expected
> 
>     cygstart touch 1 2 3
> 
> maybe the hyphen in "-c" is causing the problem?

update - cygstart does support multiple arguments, but any spaces will cause a
problem. for example this command works fine:

    cygstart bash -c 'echo;read'

but this fails

    cygstart bash -c 'echo 1;read'

and for some reason any spaces must be quoted - not escaped - these work:

    cygstart bash -c '"echo 1;read"'
    cygstart bash -c "'echo 1;read'"

these fail:

    cygstart bash -c 'echo\ 1;read'
    cygstart bash -c "echo\ 1;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