delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/02/10:55:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 2 Dec 2008 07:54:38 -0800 (PST)
From: "Daniel B." <daniel76 AT yahoo DOT com>
Reply-To: daniel76 AT yahoo DOT com
Subject: "watch" option processing broken
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <734897.10483.qm@web53307.mail.re2.yahoo.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

I'm a little rusty on CygWin bug reporting; where should I report the following?


The "watch" command isn't parsing some of its options correctly (as documented
in "man watch" and in its usage message, and as it works normally on Linux).
Additional, when it thinks there's a problem, it doesn't report what it thinks
the problem is.

1. The command "watch -d echo" yields a  usage message:

     Usage: watch [-dhntv] [--differences[=cumulative]] [--help] [--interval=<n>] [--no-title] [--version] <command>

   That should turn on non-cumulative differences mode.  Note that that command
   also appears to be correct per the manual page and per the usage message
   printed out.  (That command works fine on Linux.)

2.  There is no error message saying what the problem is.  (Note that if you try
    "watch -x xxx", you get "watch: unknown option -- x" before the "Usage: ..."
    line.)

    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.

3.  The command "watch -d ls dir" tries to run "dir" as a command (not "ls dir").

    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(.

4.  It doesn't seem to be possible to run watch in non-cumulative differences
    mode.  "watch -d -junk date" runs, and runs in cumulative differences mode.


Daniel



      

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