You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume that each tab stop is COLS columns wide. The default is 8. ls uses tabs where possible in the output, for efficiency. If COLS is zero, do not use tabs at all.
Some terminal emulators might not properly align columns to the right of a TAB following a non-ASCII byte. You can avoid that issue by using the -T0 option or put TABSIZE=0 in your environment, to tell ls to align using spaces, not tabs.
Simple test (uncomment the first line to run GNU's):
export C=./target/debug/coreutils
touch a b
$C ls -w4 -x -T3 a b > out
printf '%s\n' 'a b' > exp
diff -u exp out
Currently, the option isn't implemented at all error: Found argument '-T' which wasn't expected, or isn't valid in this context
If I remember correctly, ls currently does not use tabs in its output (and the alignment is handled by an external library). So I think the only option that does not require a full rewrite of the alignment code is to silently ignore this option.
info ls
returns:Simple test (uncomment the first line to run GNU's):
Currently, the option isn't implemented at all
error: Found argument '-T' which wasn't expected, or isn't valid in this context
Maybe a good second bug :)
tested by GNU here:
https://github.com/coreutils/coreutils/blob/master/tests/ls/w-option.sh#L37=
To run it:
The text was updated successfully, but these errors were encountered: