Bug 1931776

Summary: Conversion into table not operational
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 12:08:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.