Page MenuHomeFreeBSD

freebsd-version(1): Add -j flag to support jails
ClosedPublic

Authored by kfv_kfv.io on Jul 17 2020, 12:13 PM.
Tags
None
Referenced Files
F106154673: D25705.diff
Thu, Dec 26, 7:13 AM
Unknown Object (File)
Tue, Dec 3, 5:28 AM
Unknown Object (File)
Nov 23 2024, 3:08 PM
Unknown Object (File)
Nov 22 2024, 2:39 PM
Unknown Object (File)
Nov 14 2024, 10:24 PM
Unknown Object (File)
Nov 14 2024, 10:48 AM
Unknown Object (File)
Nov 5 2024, 4:52 PM
Unknown Object (File)
Oct 29 2024, 12:32 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37387
Build 34276: arc lint + arc unit

Event Timeline

bcr added a subscriber: bcr.

OK from manpages. A useful feature, I might add.

kevans added inline comments.
bin/freebsd-version/freebsd-version.sh.in
122

We should probably warn if $opt_j == 1 already, but as a future addition it'd be neat if we could support manually-driven usage like:

freebsd-version -j1 -j2 -j3

to fetch the versions of multiple jails, but I don't think that's important to do up front.

  • freebsd-version(1): accept multiple occurrences of the -j option
kfv_kfv.io added inline comments.
bin/freebsd-version/freebsd-version.sh.in
122

I just took care of that, but I didn't know if I should eliminate duplicates, so the user can currently do something like:

freebsd-version -j1 -j1 -j2 -j1

And in return, we give them the versions in the same order as specified.
Please let me know if I should change this behaviour.

@kevans: by the way, on the subject of the attribution we discussed in IRC, I prefer Faraz Vahedi <kfv@kfv.io>, thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Oct 1 2021, 6:51 PM
This revision was automatically updated to reflect the committed changes.