"watch" option processing broken

Brian Dessent brian@dessent.net
Tue Dec 2 16:10:00 GMT 2008


"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/



More information about the Cygwin mailing list