This is not a bug, but expected behaviour.
If an ordering option is supplied to '-k' ('n' in this particular case),
global ordering options are overridden.
I.e. when sort is called this way:
sort --reverse -k2
the global option '--reverse' takes effect.
But in this case:
sort --reverse -
I can confirm this behaviour for procps-3.2.8.
Additional information:
procps is not used in newer releases any longer.
At least as of 14.04 it is replaced by procps-ng, the top implementation of
which handles this scenario correctly.
** Changed in: procps (Ubuntu)
Status: New => Confirm
> I suspect that it is some cache which is not properly getting reset.
Your assumption is somewhat correct. Bash does cache the locations of
executables it located. The keyword to look for would be hashing.
At first sight that behaviour doesn't seem to have changed for quite a
long time, it can b
3 matches
Mail list logo