[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7568: stat 'i\i' shows 'i\\i'

From: Jim Meyering
Subject: bug#7568: stat 'i\i' shows 'i\\i'
Date: Mon, 06 Dec 2010 09:27:14 +0100

address@hidden 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'

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]