Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177741370
D61742.1795175556.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
895 B
Referenced Files
None
Subscribers
None
D61742.1795175556.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.1 Nov-18,2026"
+SYSRC_VERSION="9.2 Nov-18,2026"
#
# Options
@@ -878,6 +878,29 @@
new="${1#*=}"
esac
+ # Empty append or remove changes nothing
+ case "$mode:$1" in
+ LISTAPPEND:*=|LISTREMOVE:*=|STRAPPEND:*=)
+ if [ "$SHOW_EQUALS" ]; then
+ shell_fmt "$name=%s # unchanged\n" "$before"
+ else
+ echo "$name$SEP$before (unchanged)"
+ fi
+ shift 1
+ continue ;;
+ esac
+
+ # Unchanged?
+ if [ "$before" = "$new" ]; then
+ if [ "$SHOW_EQUALS" ]; then
+ shell_fmt "$name=%s # unchanged\n" "$before"
+ else
+ echo "$name$SEP$before (unchanged)"
+ fi
+ shift 1
+ continue
+ fi
+
#
# If `-c' is passed, simply compare and move on
# NB: `-e' ignored when given `-c'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 20, 11:52 AM (9 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41860899
Default Alt Text
D61742.1795175556.diff (895 B)
Attached To
Mode
D61742: sysrc: Add "unchanged" messages
Attached
Detach File
Event Timeline