X-Recipient: archive-cygwin@delorie.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 <brian@dessent.net>
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: "watch" option processing broken
References: <734897.10483.qm@web53307.mail.re2.yahoo.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

