https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
Marcel Moolenaar changed:
What|Removed |Added
Assignee|freebsd-bugs@FreeBSD.org|mar...@freebsd.org
--
You are
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
--- Comment #6 from Allan Jude ---
(In reply to Marcel Moolenaar from comment #5)
My results are different:
# uname -a
FreeBSD Nexus.HML3.ScaleEngine.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0
r276776: Wed Jan 7 16:16:14 UTC 2015
r...@n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
--- Comment #5 from Marcel Moolenaar ---
I don't seem to be able to reproduce your problem:
fbsdvm64% wc --libxo json,pretty /etc/defaults/*
{
"wc": {
"file": [
{
"lines": 111,
"words": 644,
"characters"
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
Allan Jude changed:
What|Removed |Added
Attachment #152821|0 |1
is obsolete|
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
--- Comment #3 from Allan Jude ---
Created attachment 152821
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152821&action=edit
removes the 'total' key, making the total just a regular array element
--
You are receiving this mai
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
--- Comment #2 from Allan Jude ---
Created attachment 152820
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152820&action=edit
Patch for wc that puts the total object outside the file array
--
You are receiving this mail becaus
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
--- Comment #1 from Allan Jude ---
I am not clear which was the intended output, so I have attached a patch for
each way:
'inside' (total is the last element on the file array)
and 'outside' (total is a sibling key, at the same level as t
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499
Bug ID: 197499
Summary: wc libxo emits invalid JSON when used on multiple
files
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any