This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Run command in new window
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 24 Dec 2017 21:08:17 -0800 (PST)
- Subject: Re: Run command in new window
- Authentication-results: sourceware.org; auth=none
- References: <CAG2dRtE0DL3BP9=mXnP_r0-JALg7gZf69j3wR+Mma4=bAU_L6w@mail.gmail.com>
On Sun, 24 Dec 2017 21:53:19, Dave Caswell wrote:
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.
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