[Bug 279200] sysrc(8) fails to perform set operations for += and -= in -c (check only) mode.

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 21 May 2024 14:17:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279200

            Bug ID: 279200
           Summary: sysrc(8) fails to perform set operations for += and -=
                    in -c (check only) mode.
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: crest@rlwinm.de

The sysrc command does not perform required set union/difference operations
when asked to check if a variable contains certain values (or not) e.g. the
following sequences of commands returns failure when it shouldn't:

    sysrc jail_list="jail1 jail2 jail3" && sysrc -c jail_list+=" jail2"

-- 
You are receiving this mail because:
You are the assignee for the bug.