Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2019 15:05:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 239560] sysrc misinterprets "variable=value"-like strings as real assignments
Message-ID:  <bug-239560-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239560

            Bug ID: 239560
           Summary: sysrc misinterprets "variable=value"-like strings as
                    real assignments
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: 0mp@FreeBSD.org

Here is a file that can be used to reproduce the bug:

```
real="
fake=0"
```

Now the result of running `sysrc -f file -a` is:

> real:
> fake=0
> fake:

The bug is that sysrc should not print "fake:" here.

I'm running FreeBSD 13.0-CURRENT r350403.

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

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239560-227>