Bug 239560 - sysrc misinterprets "variable=value"-like strings as real assignments
Summary: sysrc misinterprets "variable=value"-like strings as real assignments
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-31 15:05 UTC by Mateusz Piotrowski
Modified: 2019-07-31 15:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer 2019-07-31 15:05:11 UTC
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.