journalctl -U -n [-r] erratic behavior
by doru from LinuxQuestions.org on (#5J4YM)
Code:$ journalctl -U yesterday -n100000 -r # shows ~100000 entries,
$ journalctl -U yesterday -n100000 # shows ~88000 entries,
$ journalctl -S yesterday # shows ~12000 entries.
$ echo $((11741+88343)) \~ 100082
100084 ~ 100082It appears that -n is applied before -U when -r is not used and after when -r is used.
Is this a perfect mess or what?


$ journalctl -U yesterday -n100000 # shows ~88000 entries,
$ journalctl -S yesterday # shows ~12000 entries.
$ echo $((11741+88343)) \~ 100082
100084 ~ 100082It appears that -n is applied before -U when -r is not used and after when -r is used.
Is this a perfect mess or what?