Page MenuHomeFreeBSD

sysrc: Be quiet when changing values
AcceptedPublic

Authored by jlduran_gmail.com on Jul 24 2024, 10:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 7, 2:45 PM
Unknown Object (File)
Tue, Sep 3, 2:59 AM
Unknown Object (File)
Sat, Aug 17, 11:34 PM
Unknown Object (File)
Wed, Aug 14, 10:07 AM
Unknown Object (File)
Aug 4 2024, 5:09 PM
Unknown Object (File)
Aug 4 2024, 12:11 AM
Unknown Object (File)
Jul 30 2024, 7:22 PM
Unknown Object (File)
Jul 28 2024, 10:22 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)