Hi Chris,

Thank you for the follow up.

Bellow is a quick compatibility analysis from man pages [1][2]. Two flags,
-n and -e are not compatible. The first, because it is a Debian extension,
the second, because util-linux has not implemented it and replaced its meaning.

╔════╤═══════════════════════════╤══════════════════════════╤════════════╗
║    │ bsdmainutils              │ util-linux               │ Analysis   ║
╠════╪═══════════════════════════╪══════════════════════════╪════════════╣
║ -c │ Output is formatted for a │ Output is formatted      │ OK         ║
║    │ display columns wide.     │ to a width specified     │            ║
║    │                           │ as number of             │            ║
║    │                           │ characters. The original │            ║
║    │                           │ name of this option is   │            ║
║    │                           │ --columns; this name     │            ║
║    │                           │ is deprecated since      │            ║
║    │                           │ v2.30. Note that input   │            ║
║    │                           │ longer than width is not │            ║
║    │                           │ truncated by default.    │            ║
╟────┼───────────────────────────┼──────────────────────────┼────────────╢
║ -s │ Specify a set of          │ Specify the possible     │ OK         ║
║    │ characters to be used to  │ input item delimiters    │            ║
║    │ delimit columns for the   │ (default is whitespace). │            ║
║    │ -t option.                │                          │            ║
╟────┼───────────────────────────┼──────────────────────────┼────────────╢
║ -t │ Determine the number      │ Determine the number     │ OK         ║
║    │ of columns the input      │ of columns the input     │            ║
║    │ contains and create       │ contains and create      │            ║
║    │ a table. Columns          │ a table.  Columns        │            ║
║    │ are delimited with        │ are delimited with       │            ║
║    │ whitespace, by default,   │ whitespace, by default,  │            ║
║    │ or with the characters    │ or with the characters   │            ║
║    │ supplied using the        │ supplied using the       │            ║
║    │ -s option. Useful         │ --output-separator       │            ║
║    │ for pretty-printing       │ option.  Table output    │            ║
║    │ displays.                 │ is useful for            │            ║
║    │                           │ pretty-printing.         │            ║
╟────┼───────────────────────────┼──────────────────────────┼────────────╢
║ -x │ Fill columns before       │ Fill rows before filling │ OK [3]     ║
║    │ filling rows.             │ columns.                 │            ║
╟────┼───────────────────────────┼──────────────────────────┼────────────╢
║ -n │ By default, the column    │ Specify the table        │ Not OK     ║
║    │ command will merge        │ name used for JSON       │            ║
║    │ multiple adjacent         │ output. The default is   │            ║
║    │ delimiters into a single  │ "table".                 │            ║
║    │ delimiter when using      │                          │            ║
║    │ the -t option; this       │                          │            ║
║    │ option disables that      │                          │            ║
║    │ behavior. This option     │                          │            ║
║    │ is a Debian GNU/Linux     │                          │            ║
║    │ extension.                │                          │            ║
╟────┼───────────────────────────┼──────────────────────────┼────────────╢
║ -e │ Do not ignore empty       │ Print header line for    │ Not OK [4] ║
║    │ lines.                    │ each page.               │            ║
╚════╧═══════════════════════════╧══════════════════════════╧════════════╝

[1] (bsdmainutils) https://manned.org/column/58858679
[2] (util-linux)   https://manned.org/column/256d2d15
[3] BSD manual page is misleading, see:
https://github.com/karelzak/util-linux/pull/758
[4] util-linux version has no option to ignore empty lines

Reply via email to