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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Fri, 20 Sep 2002 12:05:10 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Andre Srinivasan cc: cygwin AT cygwin DOT com Subject: Re: Can't figure out how to pass command arguments via cygstart In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 20 Sep 2002, Andre Srinivasan wrote: > ... > AS> Works for me. Add it to the man page and we'll call it a feature. > > IP> It already IS a feature. The getopt function will stop processing > IP> switches when it encounters the '--' option. > > You know that and I know that (now). I was just suggesting that > adding this to the man page will eliminate these kinds of questions. > -andre. Agreed. Below is a minimal patch against cygutils-1.1.2, feel free to expand on it. Igor ================================================================ --- src/cygstart/cygstart.1-orig 2002-03-16 00:49:43.000000000 -0500 +++ src/cygstart/cygstart.1 2002-09-20 11:58:29.000000000 -0400 @@ -15,7 +15,7 @@ cygstart \- start a program or open a fi .RB "[\-\-\fBshowminimized\fP] [\-\-\fBshowminnoactive\fP]" .RB "[\-\-\fBshowna\fP] [\-\-\fBshownoactivate\fP]" .RB "[\-\-\fBshownormal\fP] [\-\-\fBusage\fP] [\-\-\fBversion\fP]" -.RB "[\-\-\fBlicense\fP] [\-\-\fBreference\fP]" +.RB "[\-\-\fBlicense\fP] [\-\-\fBreference\fP] [\-\-]" .RB "\fIfile\fP [\fIarguments\fP]" .br .\"}}} @@ -148,6 +148,10 @@ Display licensing information \fB\-\-reference\fP Open MSDN reference for ShellExecute +.TP +\fB\-\-\fP +Interpret the rest of the command-line arguments as non-options + .SH EXAMPLES Start Bash in a new window .PP ================================================================ -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/