Hi,

as this came up in #-devel, I must admit that I actually prefer the new
behaviour slightly: before "ls" used to apply a non-injective mapping
to filenames.  The new transformation is at least injective, an
advantage when dealing with strange filenames in strange encodings.

For sane filenames (only ASCII alphanumerics and a few extra
characters, but no whitespace or quotes) nothing changes anyway ;)

Note that "ls" and "ls | cat" (output to tty vs no-tty) already
differed before.

Arguably a different output (C escape) codes might be more readable for
users: compare

  'new'$'\n''line'

vs

  new\nline

where the user has to add the $'...' himself when using the filename in
a shell.

Ansgar

Reply via email to