Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20050725163321.44771.qmail@web30204.mail.mud.yahoo.com> Date: Mon, 25 Jul 2005 09:33:21 -0700 (PDT) From: Peter Farley Subject: Re: Error using cygstart command with option arguments: "cygstart: bad argument" To: cygwin AT cygwin DOT com In-Reply-To: <42E2A76E.5F686BC0@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes --- Brian Dessent wrote: > The problem that you are running into is that you > need to tell cygstart that the -c and following > arguments are meant for the child process, and > are not arguments to cygstart itself. '--' is a > standard way of doing this, which indicates to the > program that all of the following arguments > should not be interpreted as switches but just > regular data. So "cygstart -- bash -c ..." ought > to work. Follow-up: Using "cygstart -- bash -c ..." did in fact solve the "bad argument" error and do exactly what I needed. Thanks again for the help. Peter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/