freebsd-doc icon indicating copy to clipboard operation
freebsd-doc copied to clipboard

handbook/cutting-edge: Fix a command typo

Open ykla opened this issue 1 month ago • 2 comments

Signed-off-by: ykla [email protected] Sponsored by: Chinese FreeBSD Community

see also line 1328

ykla avatar Dec 01 '25 15:12 ykla

This is not a typo. From the manual:

The following options are available:

       -k	   Print  the version and patch	level of the installed kernel.
		   Unlike uname(1), if a new kernel has	been installed but the
		   system has not yet rebooted,	freebsd-version	will print the
		   version and patch level of the new kernel.

       -r	   Print the version and patch level of	 the  running  kernel.
		   Unlike  uname(1),  this  is unaffected by environment vari-
		   ables.

       -u	   Print the version and patch level of	 the  installed	 user-
		   land.   These are hardcoded into freebsd-version during the
		   build.

You can use -r with -k, but this might confuse users.

concussious avatar Dec 02 '25 19:12 concussious

This is not a typo. From the manual:

That may be, but either way the inconsistency with the earlier running text should be corrected.

pauamma avatar Dec 02 '25 19:12 pauamma