delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/25/00:11:52

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=OwBQgzqRweBJ3ZnKQidF3aGyIgadz
3+UOigl91diPgDrxt3BvEoPUTTo6WctOGFrzQy4X0Zfa1L/gOXJkIndsRCB1phSV
Ctb+9bFzhbCPUoeHthxGr1Hs+Hd1wcmeDB4RKpnN5YfSPGQjwaO+QaplHBBLjeV8
RQJamInqhfqvXE=
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=N1vgvb6UDckbxngRFmhGJaFJvd4=; b=wNh
pmlpu6OE4fZJc/BnRkU1Mgoy6EYv67UuWZXMdDezr/8MSypkJIEz7sQpf1XadLkU
5gAO4xW+W5LfGDVhx2nVtgEXP0K45vK1OlBtl+fwwuQyYjDTvpV3Sm+S4v61C0sn
IQ8tczW79PCDmHOKAzSIs92yX4Wi3cLSQHzB6qY4=
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=OPTION, Hx-languages-length:724, H*UA:github.com, H*M:google
X-HELO: mail-oi0-f47.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=VdCRe4fACzqk1sPpX4FG9QXexby41ZiO1ZrNCjoOaoQ=; b=R8lb+/SNjyRHvZ4GARFeKZIbHS6Va5HsSw+jrrN1APDx3vY3GZVjzYhaIED+L5X87V jQoTJbIumBiaolfkQ4ERodI+wRrN84aFSY7UUkdyFr5IEhMJ5l0WhTCdkkt1Kyi2+tU+ AFQUzAEJsBSwPVkHh5jSToPfWMxtbo0rCVtFNBZrvEMZAZJzQzOPc36CNpEjYJPd/S+Z 8Q6yJZR1oeaYYse4OkMaHyVriY/e1uWxkqZcf4Tf7AWiK5LfGqH+ZgjsfghFZ6yRYuoC GvsXTtK36T1rzcsWdYII8w8S+IRbznEJXx4vmYoG8ce3BOsTBMC8Tx2ebBYkuv/iJYoI iy5Q==
X-Gm-Message-State: AKGB3mK75uRmuh3rJI0UmuINnFSQ7EIB7zm5DyEBg12RR25aKSnCKdDX wga2RzZ0trTSrdt8GQJ2C7S6eQ==
X-Google-Smtp-Source: ACJfBotS2TlD1/dsVUp+AGn57+L8pb2SEGQHh+XKL/NPrD72mudNIFpG+X/IK9Obejb1I4NoXfjc9Q==
X-Received: by 10.202.88.84 with SMTP id m81mr14354997oib.178.1514178497720; Sun, 24 Dec 2017 21:08:17 -0800 (PST)
Message-ID: <5a4087c1.cdebca0a.a4e97.8eb3@mx.google.com>
Date: Sun, 24 Dec 2017 21:08:17 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
References: <CAG2dRtE0DL3BP9=mXnP_r0-JALg7gZf69j3wR+Mma4=bAU_L6w AT mail DOT gmail 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:53:19, Dave Caswell wrote:
> Ah, OK.  Here you go:
> 
> davec AT SodiumWin ~
> $ cygstart /usr/bin/bash '-c "echo hello; sleep 5"'
> 
> I wish I could explain just why this quotation pattern works here.  A
> long time ago I found that dicking around with the quotes could often
> get things working faster than trying to understand it in detail.

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?


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