Bug 107103 - 'watch' utility processes arguments incorrectly
'watch' utility processes arguments incorrectly
Product: Fedora
Classification: Fedora
Component: procps (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Daniel Walsh
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-10-14 20:55 EDT by Pat Gunn
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-11 08:45:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Pat Gunn 2003-10-14 20:55:34 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031013

Description of problem:
The 'watch' utility doesn't parse its arguments correctly.
According to the manpage:
       Note  that  POSIX  option  processing  is used (i.e., option processing
       stops at the first non-option argument).  This means that  flags  after
       command don't get interpreted by watch itself.

morose:~$ watch ls -l
watch: invalid option -- l

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run watch with above arguments
2. Get frustrated
3. Use quotes to work around the bug

Additional info:
Comment 1 Andrew Gaul 2004-01-14 22:53:51 EST
Also, --version returns the help string instead of the version.  Both
appear to be fixed in procps 3.1.15; FC1 uses 2.0.17.
Comment 2 Alexander Larsson 2004-02-05 05:44:25 EST
Mass reassign to new owner
Comment 3 Daniel Walsh 2004-02-11 08:45:47 EST
Fixed in 3.1.15

Note You need to log in before you can comment on or make changes to this bug.