From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29086 invoked by alias); 25 Dec 2017 04:54:12 -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 28827 invoked by uid 89); 25 Dec 2017 04:53:31 -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=wish X-HELO: mail-lf0-f42.google.com Received: from mail-lf0-f42.google.com (HELO mail-lf0-f42.google.com) (209.85.215.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Dec 2017 04:53:29 +0000 Received: by mail-lf0-f42.google.com with SMTP id o26so22643609lfc.10 for ; Sun, 24 Dec 2017 20:53:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XQbeZ9o2XROlsg+tM79TWHCoTVbxEnaOl2W2Dgjelkg=; b=B1F1vMSK8dl1l5DaQCXFIEmq1KKyQNO4Jap0LCQQMSeORKqcxkMRSVCJQ5Rxe/NHnu yBFzAqURvZIPJGOAEdpv0lXXH/b/9bCaqeqJH691xjOgH2NSionqREopBIlZSsurxxYP iq0xiVMQUsp05ZQaNw6yZ7olygkXUN4s5cOPGfzoxVflowpHgQK1s10WZTD6ZTgGmm3m PkZj7dLFpE2AnEbhnBfvIu8Ys0eFoLymUzIWuPGP189wLhrTZbimdRLY2CvlYDa9TJtx 1U0zQmmUEnKGgAbxW91AX+xWw1MYniwyy4CbZ5SZGjDge+u6rG9QbLU/icNWkE/hKZNI cjmQ== X-Gm-Message-State: AKGB3mLFqwJJvLLfd+Uqy+m3sJjCXZHvBPxOm32PwvayLsAqV1X9vDDo MVo4bUPjXCsLd4Gb0nl2fDtokZZyIrsMNVa9EF2CADH/ X-Google-Smtp-Source: ACJfBou7+n15DJgO13wdswFVaAPisA9J+S/r3g+03s974TxjyJe1ywBBMDopVrWKWQUtuSU4q3h3TDlqfByPKfLVCjo= X-Received: by 10.25.87.205 with SMTP id l196mr5629423lfb.142.1514177600222; Sun, 24 Dec 2017 20:53:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.167.77 with HTTP; Sun, 24 Dec 2017 20:53:19 -0800 (PST) In-Reply-To: <5a407fe6.2f079d0a.76591.2ebc@mx.google.com> References: <5a407fe6.2f079d0a.76591.2ebc@mx.google.com> From: Dave Caswell Date: Tue, 26 Dec 2017 17:43:00 -0000 Message-ID: Subject: Re: Run command in new window To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00258.txt.bz2 On Sun, Dec 24, 2017 at 9:34 PM, Steven Penny wrote: > > yes, that is good if you want to use a script - but a command does not work: > > cygstart bash -c 'echo hello; sleep 5' > Ah, OK. Here you go: davec@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. -- 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