-L
is a useful feature of wc
, or so I thought. It prints the length of the longest line. For some reason it expands a single-byte tab-char to a length of 8.
Is there some way to set this to not "expand" the tab? and what might be the rationale behind this expansion?
echo -n $'\t' | wc -L
outputs 8
wc (GNU coreutils) 7.4
GNU bash, version 4.1.5