Problems with nice -> should be: Problems with nice man-page.

David B. Anderson davea at quasar.wpd.sgi.com
Thu Aug 9 01:39:48 AEST 1990


In article <9008080211.aa02949 at VGR.BRL.MIL>, XBR2D96D at DDATHD21.BITNET (Knobi der Rechnerschrat) writes:
> Hello,
> 
>   the problem with nice seems to be more a problem with the nice man
> page. There it is silently assumed that you are using /bin/sh as your
> shell. If you use /bin/csh (or derivates like tcsh) things are different.
> 
>  Here are the rules that I have discovered by experiment:
> 
>    shell   def-value   decrease priority  increase priority (as root)
>    ------------------------------------------------------------------
>    sh         10       nice -value          nice --value
>    csh         4       nice +value          nice  -value
> 
>  The '-', '--' and '+' are IMPORTANT. Could somebody at SGI look at
> the man page and correct it for some future release?

Martin Knoblauch has an interesting table here.

``nice'' is a csh built-in and the csh(1) man page accurately gives its
properties.  The csh built-in nice calls setpriority(2) to set the priority
of the victim process.

It might be a nice :-) idea to have the nice(1) man page mention that
csh uses a built-in......

Regards,
[ David B. Anderson  Silicon Graphics  (415)335-1548  davea at sgi.com ]
[``What can go wrong?''                          --Calvin and Hobbes]



More information about the Comp.sys.sgi mailing list