Bug 239561 - sysrc prints incorrect values for variables with trailing newlines
Summary: sysrc prints incorrect values for variables with trailing newlines
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 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-31 15:11 UTC by Mateusz Piotrowski
Modified: 2020-10-27 12:28 UTC (History)
2 users (show)

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: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
```