This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: "watch" option processing broken
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 02 Dec 2008 08:09:17 -0800
- Subject: Re: "watch" option processing broken
- References: <734897.10483.qm@web53307.mail.re2.yahoo.com>
- Reply-to: 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/