Web lists-archives.com

Re: Run command in new window

On Sun, Dec 24, 2017 at 9:34 PM, Steven Penny <svnpenn@xxxxxxxxx> 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