Bug 239561

Summary: sysrc prints incorrect values for variables with trailing newlines
Product: Base System Reporter: Mateusz Piotrowski <0mp>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: dteske, lwhsu
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Mateusz Piotrowski freebsd_committer 2019-07-31 15:11:16 UTC
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
```