Hello,

On Tue, Jan 02 2018, Ben Hutchings wrote:

> The output of ls on a terminal has never, in general, been an accurate
> reflection of the contents of a directory.  Consider that filenames
> can contain *any* byte value other than '\0' or '/', so including
> carriage return, newline, backspace and escape characters.
>
> ls also uses multiple columns by default, but without quoting you
> can't generally tell where the columns are, e.g. is:
>
> aa ba ca ab bb cb
>
> a list of 6 two-letter filenames, or 2 filenames with spaces in, or
> something else again?

More points here: https://mywiki.wooledge.org/ParsingLs

> Be careful what you wish for.  But I think this will revert the recent
> change:
>
>     alias ls='ls --literal'

Thank you for this tip.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature

Reply via email to