Bug 251316 - [PATCH] freebsd-version: present -v option, to print verbose information
Summary: [PATCH] freebsd-version: present -v option, to print verbose information
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://reviews.freebsd.org/D27318
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-11-22 16:59 UTC by Vinícius Zavam
Modified: 2021-04-25 17:25 UTC (History)
0 users

See Also:


Attachments
[PATCH] freebsd-version: present -v option, to print verbose information (3.87 KB, patch)
2020-11-22 16:59 UTC, Vinícius Zavam
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vinícius Zavam freebsd_committer 2020-11-22 16:59:44 UTC
Created attachment 219890 [details]
[PATCH] freebsd-version: present -v option, to print verbose information

by applying this patch, we would be able to extend freebsd-version's features to:

  * print verbose information of the base system (using existing userland_version() function);
  * print verbose information of the kernel (using existing running_version() function);

we kept kernel_version() as is - it uses the bootfile, which may not be present if one is running any FreeBSD jail.
-----


  * default output, kept as is

# freebsd-version
13.0-CURRENT

  * output using verbose information

# freebsd-version -v
13.0-CURRENT 1300126

  * output using verbose information (running_version, for its kernel)

# freebsd-version -rv
13.0-CURRENT 1300126

  * userland and running_version, kept as is

# freebsd-version -ru
13.0-CURRENT
13.0-CURRENT

  * userland and running_version with all verbose information

# freebsd-version -ruv
13.0-CURRENT 1300126
13.0-CURRENT 1300126
Comment 1 Vinícius Zavam freebsd_committer 2021-01-25 15:14:09 UTC
ping?