[Bug 239561] sysrc prints incorrect values for variables with trailing newlines
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 31 15:11:17 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239561
Bug ID: 239561
Summary: sysrc prints incorrect values for variables with
trailing newlines
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
The problem is that running `sysrc -f file var` where file contents are:
```
var1="val
"
var2=val
```
results in
```
var1: val
var2: val
```
being printed. Instead, the output should be:
```
var1: val
var2: val
```
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list