On Fri, 5 Feb 2021 22:28:11 +0100 David Haller <dnh@opensuse.org> wrote:
Hello,
On Fri, 05 Feb 2021, Dave Howorth wrote:
Out of interest I did
$ touch '? ?' $ ls -l ??? | cat -v -rw-r--r-- 1 dhoworth users 0 Feb 5 15:50 ? ?
so I don't know what's supposed to happen?
Actually, the file was not named '?' but named 'Ð', i.e. Oct Dec Hex Char Description 320 208 D0 Ð LATIN CAPITAL LETTER ETH (from man latin1 / man latin9).
Sorry, I have no idea what you're trying to tell me. I already knew and had said earlier that the original file was not called '?'. So I don't need to be told that, and I don't think we've seen enough information on list to know exactly what it was called, so I *would* be interested to know how you come to know it. But what I was commentiong on was that cat -v apparently doesn't substitute for a newline in a filename which (a) I'd expected and (b) makes ls -b a clear winner in this situation IMHO.
So, you'd need to do:
$ touch $'\320' $ ls -b \320
And if you're using an ASCII or UTF-8 locale that single byte name is not a valid character, which might explain the problems deleting it.
Using 'LC_ALL=en_US.latin1 rm -vi' might help.
HTH, -dnh
PS: I guess it'd be best to force this mail to be utf8 encoded, so it does not sound all ελληνικά to you ;)