Re: Run command in new window
- Date: Sun, 24 Dec 2017 21:53:19 -0700
- From: Dave Caswell <dave.caswell@xxxxxxxxx>
- Subject: 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:
$ 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple