Page MenuHomeFreeBSD

D61741.1795175430.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61741.1795175430.diff

diff --git a/usr.sbin/sysrc/sysrc b/usr.sbin/sysrc/sysrc
--- a/usr.sbin/sysrc/sysrc
+++ b/usr.sbin/sysrc/sysrc
@@ -16,7 +16,7 @@
#
# Version information
#
-SYSRC_VERSION="9.0 Nov-18,2026"
+SYSRC_VERSION="9.1 Nov-18,2026"
#
# Options
@@ -880,24 +880,27 @@
#
# If `-c' is passed, simply compare and move on
+ # NB: `-e' ignored when given `-c'
#
if [ "$CHECK_ONLY" ]; then
if ! IGNORED=$( f_sysrc_get "$NAME?" ); then
status=$FAILURE
- [ "$VERBOSE" ] &&
- echo "$NAME: not currently set"
- shift 1
- continue
+ [ "$QUIET" ] ||
+ f_err "%s: not currently set\n" "$NAME"
elif [ "$new" != "$before" ]; then
status=$FAILURE
if [ "$VERBOSE" ]; then
- echo -n "$( f_sysrc_find "$NAME" ): "
- echo -n "$NAME: would change from "
- echo "\`$before' to \`$new'"
+ f_err "%s: %s: would change %s\n" \
+ "$( f_sysrc_find "$NAME" )" \
+ "$NAME" \
+ "from \`$before' to \`$new'"
+ elif [ ! "$QUIET" ]; then
+ f_err "%s: value differs\n" "$NAME"
fi
elif [ "$VERBOSE" ]; then
- echo -n "$( f_sysrc_find "$NAME" ): "
- echo "$NAME: already set to \`$before'"
+ f_err "%s: %s: already set to \`%s'\n" \
+ "$( f_sysrc_find "$NAME" )" \
+ "$NAME" "$before"
fi
shift 1
continue

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 20, 11:50 AM (9 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41860858
Default Alt Text
D61741.1795175430.diff (1 KB)

Event Timeline