[Bug 239560] sysrc misinterprets "variable=value"-like strings as real assignments

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 31 15:05:12 UTC 2019


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 at FreeBSD.org
          Reporter: 0mp at 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.


More information about the freebsd-bugs mailing list