Page MenuHomeFreeBSD

sysrc: Be quiet when changing values
AcceptedPublic

Authored by jlduran on Jul 24 2024, 10:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 4 2024, 7:10 PM
Unknown Object (File)
Nov 23 2024, 12:12 PM
Unknown Object (File)
Oct 1 2024, 10:04 AM
Unknown Object (File)
Oct 1 2024, 4:08 AM
Unknown Object (File)
Sep 25 2024, 7:02 AM
Unknown Object (File)
Sep 11 2024, 3:43 AM
Unknown Object (File)
Sep 7 2024, 2:45 PM
Unknown Object (File)
Sep 3 2024, 2:59 AM

Details

Reviewers
dteske
imp
Summary

Currently the behavior is the same with or without the quiet (-q) flag:

Before:

# sysrc -q hostname=foo
hostname:  -> foo

After:

# sysrc -q hostname=foo
Test Plan

Not much fuzz about this change, just to avoid redirecting the output.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Some bogus file creeped in. I apologize.

This revision is now accepted and ready to land.Jul 25 2024, 2:30 AM

I see a resemblance with sysctl here, and I would not want to change that.

If sysctl also had a "really be quiet" option (let's say -Q or -qq), then sysrc should mimic that.

Thoughts?

EDIT: (cross-reference: there is no shame in redirecting)