Re: nice bug

Bob Proulx <[email protected]>
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
> kuiper@dsnra2:~/tcl$ nice -ADJUST xdos

Thanks for the report.  The documentation perhaps is not completely
clear that ADJUST is meant to be a number.

>   -ADJUST                   increment priority by ADJUST first
> Range goes from -20 (highest priority) to 19 (lowest).

Several traditional commands like nice, head, tail, etc. all would
take -NUMBER (NUMBER being a number) but that is an inconsistent
interface and today's wisdom says all options should be an option
followed by an argument.  So the prefered syntax would be -n 10
instead of -10, for example.

The normal usage of nice is something like the following.

  nice xdos
  nice -n 10 xdos

As always 'info nice' will get you the documentation.

Hope that helps to clear that up.
Bob

> nice: invalid option -- A
> Try `nice --help' for more information.
> 
> kuiper@dsnra2:~/tcl$ nice --help       
> Usage: nice [OPTION]... [COMMAND [ARG]...]
> Run COMMAND with an adjusted scheduling priority.
> With no COMMAND, print the current scheduling priority.  ADJUST is 10
> by default.

> 
>   -n, --adjustment=ADJUST   same as -ADJUST
>       --help                display this help and exit
>       --version             output version information and exit
> 
> Report bugs to <[email protected]>.
> 
> kuiper@dsnra2:~/tcl$ uname -a
> Linux dsnra2 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown
> 
> kuiper@dsnra2:~/tcl$ nice --version
> nice (GNU sh-utils) 2.0
> Written by David MacKenzie.
> 
> Copyright (C) 1999 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> I hope this is sufficient information.
> 
> Tom Kuiper
> --
> Internet:       [email protected] (137.79.89.31)
> SnailMail:      Jet Propulsion Lab 169-506, Pasadena, CA 91109
> Phone/fax:      (818) 354-5623/8895
> WWW:            http://DSNra.JPL.NASA.gov/~kuiper/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.