[Bug 226406] sysrc(8) wrong output when value is "-n"

2018-06-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226406

Devin Teske  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|dte...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 226406] sysrc(8) wrong output when value is "-n"

2018-06-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226406

--- Comment #2 from Devin Teske  ---
Can you test to make sure the problem is fixed?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 226406] sysrc(8) wrong output when value is "-n"

2018-06-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226406

Devin Teske  changed:

   What|Removed |Added

 CC||dte...@freebsd.org
 Status|New |In Progress

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 226406] sysrc(8) wrong output when value is "-n"

2018-06-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226406

--- Comment #1 from commit-h...@freebsd.org ---
A commit references this bug:

Author: dteske
Date: Sun Jun 17 06:25:32 UTC 2018
New revision: 335281
URL: https://svnweb.freebsd.org/changeset/base/335281

Log:
  sysrc.subr: Fix display when value is "-n"

  PR:   bin/226406
  Reported by:  Marius Halden 
  MFC after:1 week
  X-MFC-to: stable/11
  Sponsored by: Smule, Inc.

Changes:
  head/usr.sbin/bsdconfig/share/sysrc.subr

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 226406] sysrc(8) wrong output when value is "-n"

2018-03-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226406

Bug ID: 226406
   Summary: sysrc(8) wrong output when value is "-n"
   Product: Base System
   Version: 11.1-RELEASE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: mariu...@lden.org

Created attachment 191264
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=191264&action=edit
sysrc.patch

When the value of a variable is set to "-n" it will be printed as an empty
value.

Example output when setting a variable to be "-n":

% sysrc -f rc.conf  xyz=-n
xyz: test ->
% sysrc -f rc.conf  xyz
xyz:
% sysrc -f rc.conf -c xyz=-n ; echo $?
1
% grep xyz= rc.conf
xyz="-n"

Desired output:

% sysrc -f rc.conf xyz=-n
xyz: test -> -n
% sysrc -f rc.conf xyz
xyz: -n
% sysrc -f rc.conf -c xyz=-n ; echo $?
0

The attached patch fixed this for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"