[Bug 262719] [patch] WARNING: $ is not set properly - see rc.conf(5)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Mar 2022 15:10:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262719

            Bug ID: 262719
           Summary: [patch] WARNING: $ is not set properly - see
                    rc.conf(5)
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: dinoex@FreeBSD.org

Created attachment 232631
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232631&action=edit
Suggested patch

On all systems I get logged in /var/log/messages

/usr/sbin/service: WARNING: $ is not set properly - see rc.conf(5).

I can reproduce this by running:
# service -e

The problem occurs in /etc/rc.d/addswap

The attached patch fixes the problem for me.
Please review.

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