FS#47240 - [util-linux] column -s X -t fails when there are colour escapes before X
Attached to Project:
Arch Linux
Opened by Simon Kohlmeyer (voyd) - Wednesday, 02 December 2015, 20:28 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 June 2016, 14:18 GMT
Opened by Simon Kohlmeyer (voyd) - Wednesday, 02 December 2015, 20:28 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 June 2016, 14:18 GMT
|
Details
Disclaimer: I both reported the upstream bug and submitted
the patch.
Upstream Bug: https://bugzilla.kernel.org/show_bug.cgi?id=108521 Description: When invoking the column utility, the columnization doesn't work correctly when there are Control Sequences like color codes before the separator. The upstream issue contains a patch, which I feel should be included in arch util-linux. Additional info: * util-linux-2.27.1-1 Steps to reproduce: ` test='\033[33mb\033[mXFoo\n\033[33mbar\033[mXFoo' echo -e $test echo '=>' echo -e $test | column -s X -t ` Expected output (which is produced with test='bXFoo\nbarXFoo'): bXFoo barXFoo => b Foo bar Foo Actual output: bXFoo barXFoo => b Foo bar Foo |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 18 June 2016, 14:18 GMT
Reason for closing: Fixed
Additional comments about closing: util-linux 2.28
Saturday, 18 June 2016, 14:18 GMT
Reason for closing: Fixed
Additional comments about closing: util-linux 2.28
I've switched to another workaround in the meantime