[Bug 299413] sysrc fails with $

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 15 Oct 2026 14:07:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299413

            Bug ID: 299413
           Summary: sysrc fails with $
           Product: Base System
           Version: 14.5-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: julien@perdition.city

Hello,

It looks like sysrc is failing in check mode when a "$" is involved:

lambic% grep cron_flags /jails/webapps/etc/rc.conf                              
cron_flags="$cron_flags -J 15"

lambic% sysrc -f /jails/webapps/etc/rc.conf -c -v 'cron_flags=$cron_flags -J
15'
/jails/webapps/etc/rc.conf: cron_flags: would change from ` -J 15' to
`$cron_flags -J 15'

Thanks!

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