[email protected] wrote: > stat 'i\i' shows 'i\\i'. > Backspaces in filenames are doubled. > stat (GNU coreutils) 8.5
Thanks for the report, but that's a feature, since backslash
is used to denote e.g., newline (\n), backspace (\b), etc. in
a quoted name:
$ ./stat -c %N 'a^Hb'
`a\bb'
If you don't want the quoting, you can use your own format string
with %n in place of %N:
* %n - File name
* %N - Quoted file name with dereference if symbolic link
