Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171102877
D46120.id141346.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46120.id141346.diff
View Options
diff --git a/sysrc-q.patch b/sysrc-q.patch
new file mode 100644
diff --git a/usr.sbin/sysrc/sysrc b/usr.sbin/sysrc/sysrc
--- a/usr.sbin/sysrc/sysrc
+++ b/usr.sbin/sysrc/sysrc
@@ -852,19 +852,23 @@
# If `-N' is passed, simplify the output
#
if [ ! "$SHOW_VALUE" ]; then
- echo "$NAME"
+ if [ ! "$QUIET" ]; then
+ echo "$NAME"
+ fi
f_sysrc_set "$NAME" "$new" || status=$FAILURE
else
if f_sysrc_set "$NAME" "$new"; then
- if [ "$SHOW_FILE" ]; then
- after=$( f_sysrc_find "$NAME" )
- else
- after=$( f_sysrc_get "$NAME" )
+ if [ ! "$QUIET" ]; then
+ if [ "$SHOW_FILE" ]; then
+ after=$( f_sysrc_find "$NAME" )
+ else
+ after=$( f_sysrc_get "$NAME" )
+ fi
+ echo -n "${SHOW_NAME:+$NAME$SEP}"
+ echo -n "$before${SHOW_EQUALS:+\" #}"
+ echo -n " -> ${SHOW_EQUALS:+\"}$after"
+ echo "${SHOW_EQUALS:+\"}"
fi
- echo -n "${SHOW_NAME:+$NAME$SEP}"
- echo -n "$before${SHOW_EQUALS:+\" #}"
- echo -n " -> ${SHOW_EQUALS:+\"}$after"
- echo "${SHOW_EQUALS:+\"}"
else
status=$FAILURE
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 5:26 PM (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38601427
Default Alt Text
D46120.id141346.diff (1 KB)
Attached To
Mode
D46120: sysrc: Be quiet when changing values
Attached
Detach File
Event Timeline
Log In to Comment