This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Run command in new window


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]