Bug 1931776 - Conversion into table not operational
Summary: Conversion into table not operational
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 33
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-23 07:44 UTC by ricky.tigg
Modified: 2021-02-24 13:17 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-02-24 12:08:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description ricky.tigg 2021-02-23 07:44:52 UTC
Description of problem: Conversion into table not operational

Version-Release number of selected component: util-linux.x86_64 2.36.1-1.fc33

$ openssl enc -ciphers | sed 1d | head -1 | column -t
-aes-128-cbc  -aes-128-cfb  -aes-128-cfb1

Actual result: No conversion into table which is not intended.

Additional info:
$ openssl enc -ciphers | sed 1d | head -1
-aes-128-cbc               -aes-128-cfb               -aes-128-cfb1

Comment 1 Karel Zak 2021-02-23 15:32:56 UTC
What output do you expect? It seems like a correct output.

Comment 2 ricky.tigg 2021-02-24 08:46:07 UTC
$ openssl enc -ciphers | sed 1d | head -1 | column -t
+--------------+--------------+---------------+
| -aes-128-cbc | -aes-128-cfb | -aes-128-cfb1 |
+--------------+--------------+---------------+
|              |              |               |
+--------------+--------------+---------------+
                    (...)

Comment 3 Karel Zak 2021-02-24 12:08:50 UTC
Ah, this is a way how "column -t" has never worked, but maybe it's something we can think about
for the next development. 

Added to the upstream TODO:
https://github.com/karelzak/util-linux/commit/244fc4d57d9d8f8941d8f9e2e0082989086b8594

For now, you can use "-o '|'" to get

$ openssl enc -ciphers | sed 1d | head -1 | column -t -o ' | '
-aes-128-cbc | -aes-128-cfb | -aes-128-cfb1

Comment 4 ricky.tigg 2021-02-24 13:17:40 UTC
 I conceived indeed that the term table was to be interpreted as ranges of data arranged within a rectangular frame.


Note You need to log in before you can comment on or make changes to this bug.