This isn't an important issue to me, but I thought rsync and find were fairly robust, so I was surprised when rsync choked on a file, and then find did too. ls -l
shows the file has 6093 bytes (and it's the only file in that directory that does, so I did this after cd'ing to that directory):
# find . -size 6093c
./????????????????????????:??????????????????????????????????????????
find: './\353\266\204\353\245\230:\353\257\270\352\265\255\354\235\230_\355\205\224\353\240\210\353\271\204\354\240\204_\352\262\214\354\236\204_\354\207\274': No such file or directory
Any idea what this means? Bizarrely,
# find . -size 6093c | xargs less
works fine. Here's what ls sees:
# ls -lat | fgrep "6093 "
ls: cannot access ''$'\353\266\204\353\245\230'':'$'\353\257\270\352\265\255\354\235\230''_'$'\355\205\224\353\240\210\353\271\204\354\240\204''_'$'\352\262\214\354\236\204''_'$'\354\207\274': No such file or directory
-rw-rw-r--. 1 nobody nobody 6093 Oct 23 2013 หมวà¸à¸«à¸¡à¸¹à¹:à¹à¸à¸¡à¹à¸à¸§à¹à¸à¹à¸¡à¸£à¸´à¸à¸²
It gets only slightly better if I pipe the results to less:
# ls -lat | fgrep "6093 " | less
ls: cannot access ''$'\353\266\204\353\245\230'':'$'\353\257\270\352\265\255\354\235\230''_'$'\355\205\224\353\240\210\353\271\204\354\240\204''_'$'\352\262\214\354\236\204''_'$'\354\207\274': No such file or directory
-rw-rw-r--. 1 nobody nobody 6093 Oct 23 2013 <E0><B8><AB><E0><B8><A1><E0><B8><A7><E0><B8><94><E0><B8><AB><E0><B8><A1><E0><B8><B9><E0><B9><88>:<E0><B9><80>
<E0><B8><81><E0><B8><A1><E0><B9><82><E0><B8><8A><E0><B8><A7><E0><B9><8C><E0><B8><AD><E0><B9><80><E0><B8><A1><E0><B8><A3><E0><B8><B4><E0><B8><81><E0><B8><B2>
The same directory has a file even ls can't handle, but I can list it since it kind of sort of shows up as the oldest entry:
# ls -lat | tail -1 | less
ls: cannot access ''$'\353\266\204\353\245\230'':'$'\353\257\270\352\265\255\354\235\230''_'$'\355\205\224\353\240\210\353\271\204\354\240\204''_'$'\352\262\214\354\236\204''_'$'\354\207\274': No such file or directory
-?????????? ? ? ? ? ? <EB><B6><84><EB><A5><98>:<EB>
<AF><B8><EA><B5><AD><EC><9D><98>_<ED><85><94><EB><A0><88><EB><B9><84><EC><A0>
<84>_<EA><B2><8C><EC><9E><84>_<EC><87><BC>
Not super important, but sort of a curiosity.
EDIT: since this question seems have to drawn a lot of attention quickly, I did a little "research" (which may or may not be entirely accurate). I was not quite able to replicate the issue, but:
On or near 23 Oct 2013, I visited the wikidata.org page on American Game Shows. At that time, it looked like this: https://www.wikidata.org/w/index.php?title=Q7213876&direction=prev&oldid=85645107
I then followed one or more of the foreign language links.
On the foreign links I followed, I used https://en.wikipedia.org/wiki/DownThemAll! to download all the links.
Doing this yields many filenames with special characters, and I'm almost sure that's how I got these two weird files.
However, doing that today, I still get filenames with special characters, but not quite the ones below.
LC_ALL=C find . -size 6093c
and similar?sort
and this was the easiest way to solve them).ls -lat | fgrep "6093 "
above.