On 21/08/2020 13:36, Kevin Mark wrote:
Adds an -a --absolute argument to nice which sets niceness to the
given value as opposed to -n --adjustment which sets niceness
relative to the current niceness.

$ nice -n $((12 - $(nice))) nice
12

can be replaced with

$ nice -a 12 nice
12

I'm not sure the new option is worth this simplification.
I'd be 60:40 against adding this.

BTW I notice renice from util-linux takes an absolute value
as an argument to -n, which is inconsistent with renice on FreeBSD
(which supports both absolute and relative, using -n to specify
a relative adjustment (consistent with nice)).

thanks,
Pádraig

Reply via email to