X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <49355DAD.93AC32@dessent.net> Date: Tue, 02 Dec 2008 08:09:17 -0800 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: "watch" option processing broken References: <734897 DOT 10483 DOT qm AT web53307 DOT mail DOT re2 DOT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 "Daniel B." wrote: > Similarly, if you try "watch --interval=xx echo", you get no report > that "xx" is not a valid number, or is not a valid interval value. It > seems that option-parsing messages aren't getting printed out. I get the usage summary displayed as a result of that command, which is the normal behavior when an option can't be parsed. > Apparently, the -d option code thinks -d takes an argument (taking the "ls" > as that argument, leaving only "dir" as the apparent command to run(. Yes, it seems there is a getopt issue. But you can work around it by using the long form: "watch --differences echo" works OK. Brian -- 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/