Date: Sat, 16 May 2020 20:26:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246514] w(1) truncates output before passing to libxo Message-ID: <bug-246514-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246514 Bug ID: 246514 Summary: w(1) truncates output before passing to libxo Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ltning-freebsd@anduin.net When calling w(1) as w --libxo=3Djson or any other output format, values - particularly the WHAT column - gets truncated by the terminal size at the time of invocation. This is particula= rly troublesome when called in a non-terminal session e.g. from cron(8), as it = will then default to 79 characters. It could be argued that unless the output is a terminal, it should not make= any assumptions about or adaptations to terminal size at all. For example, w|he= ad should not truncate. However, changing this behaviour might be a violation = of the POLA. Truncating output prior to passing to libxo shoul, however, probably be considered a bug. --=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-246514-227>