Public bug reported:

The utility ``column`` gives the error ``column: line too long``, and
does not produce the correct output, when given an input without a
trailing newline:

$ python3 -c "print('a\nb\nc')" | column
a       b       c
$ python3 -c "print('a\nb\nc', end='')" | column
column: line too long
a       b
$

This seems to be a bug, as it is not the case on my Manjaro laptop,
which uses the column utility from pacman's util-linux package:

$ python3 -c "print('a\nb\nc')" | column
a       b       c
$ python3 -c "print('a\nb\nc', end='')" | column
a       b       c
$ pacman -Qo column
/usr/bin/column is owned by util-linux 2.32.1-2

Building the util-linux on ubuntu similarly gives what would appear to
be correct behaviour:

$ make column > /dev/null
$ python3 -c "print('a\nb\nc', end='')" | ./column 
a       b       c
$


System / package information:

$ lsb_release -rd
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
$ apt-cache policy bsdmainutils
bsdmainutils:
  Installed: 11.1.2ubuntu1
  Candidate: 11.1.2ubuntu1
  Version table:
 *** 11.1.2ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: bsdmainutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1793350

Title:
  column error if no trailing newline

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/1793350/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to