Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177741302
D61741.1795175430.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61741.1795175430.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61741: sysrc: Send -c output to stderr instead of stdout
Attached
Detach File
Event Timeline