Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2019 15:11:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 239561] sysrc prints incorrect values for variables with trailing newlines
Message-ID:  <bug-239561-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239561

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

The problem is that running `sysrc -f file var` where file contents are:

```
var1=3D"val
"
var2=3Dval
```

results in

```
var1: val
var2: val
```

being printed. Instead, the output should be:

```
var1: val

var2: val
```

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239561-227>