www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/02/11:10:15

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 <brian AT dessent DOT net>
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>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019