Example: # freebsd-version -rku 12.2-RELEASE-p14 12.2-RELEASE-p7 12.2-RELEASE-p15 # freebsd-version -kru 12.2-RELEASE-p14 12.2-RELEASE-p7 12.2-RELEASE-p15 So how do I know whether the running kernel is p7 or p14 ? (tested on 12.2, because it's difficult to test if all three versions are the same)
hello there! we are discussing an improvement about freebsd-version(1) here: https://reviews.freebsd.org/D27318 would that be relevant to add into those changes? maybe we add the prefix to tell which line output is related to -r, -k or -u.
(In reply to Kurt Jaeger from comment #0) From <https://www.freebsd.org/cgi/man.cgi?query=freebsd-version&sektion=1&manpath=FreeBSD#DESCRIPTION>: > If several of the above options are specified, freebsd-version will print > the installed kernel version first, then the running kernel version, > next the userland version, and finally the userland version of the > specified jails, on separate lines.
(In reply to Graham Perrin from comment #2) Thanks for the pointer to the man page. The behaviour is still surprising and my impression that it violates POLA.
^Triage: this report should probably be closed, works as intended. I'd like someone from the Project to make a decision.