> On 2015-06-22 Norman Ramsey <[email protected]> wrote:
 > > Package: findutils
 > > Version: 4.4.2-9+b1
 > > Severity: normal
 > 
 > > Dear Maintainer,
 > 
 > > What led up to the situation is a faulty library resulted in some file
 > > names that had DEL and other ugly characters embedded.  In trying to
 > > track down these files, I used find(1), but didn't find anything.
 > > Very surprising.
 > 
 > > Further investigation reveals that find(1) is failing to match pattern
 > > '*l_y_i_n*' when the shell does:
 > 
 > >   : nr@homedog 12294 ; find . -name '*l_y_i_n*'    
 > >   : nr@homedog 12295 ; echo *l_y_i_n*          
 > >   ��F_l_y_i_n_g_ _C_o_l_o_r_s
 > >   : nr@homedog 12296 ; echo *l_y_i_n* | od -a
 > >   0000000 del   ~   F   _   l   _   y   _   i   _   n   _   g   _  sp   _
 > >   0000020   C   _   o   _   l   _   o   _   r   _   s  nl
 > >   0000034
 > [...]
 > 
 > Hello,
 > 
 > I am sorry, but this specific example works for me:

I apologize---I sent you a bad bug report.
I had not realized that 'od -a' ignores the high bit.
Please forgive me.

I can reproduce the issue by setting the first byte of 
the filename to \xFF rather than \x7F.



Norman




: nr@homedog 10282 ;  touch "`printf '\xFF~F_l_y_i_n_g_
  Colors
  '`"
: nr@homedog 10283 ; ls -l
total 0
-rw-rw-r-- 1 nr nr 0 Dec 29 15:07 ?~F_l_y_i_n_g_?Colors
-rw-rw-r-- 1 nr nr 0 Dec 29 15:02 ?~F_l_y_i_n_g_? > _C_o_l_o_r_s
: nr@homedog 10284 ; find . -name '*l_y_i*'
./?~F_l_y_i_n_g_? > _C_o_l_o_r_s
: nr@homedog 10285 ; find . -name '*l_y_i*' | od -a -t x1
0000000   .   / del   ~   F   _   l   _   y   _   i   _   n   _   g   _
         2e  2f  7f  7e  46  5f  6c  5f  79  5f  69  5f  6e  5f  67  5f
0000020  nl  sp   >  sp   _   C   _   o   _   l   _   o   _   r   _   s
         0a  20  3e  20  5f  43  5f  6f  5f  6c  5f  6f  5f  72  5f  73
0000040  nl
         0a
0000041
: nr@homedog 10287 ; for i in *; do echo "$i" | od -a -t x1; done
0000000 del   ~   F   _   l   _   y   _   i   _   n   _   g   _  nl   C
         ff  7e  46  5f  6c  5f  79  5f  69  5f  6e  5f  67  5f  0a  43
0000020   o   l   o   r   s  nl
         6f  6c  6f  72  73  0a
0000026
0000000 del   ~   F   _   l   _   y   _   i   _   n   _   g   _  nl  sp
         7f  7e  46  5f  6c  5f  79  5f  69  5f  6e  5f  67  5f  0a  20
0000020   >  sp   _   C   _   o   _   l   _   o   _   r   _   s  nl
         3e  20  5f  43  5f  6f  5f  6c  5f  6f  5f  72  5f  73  0a
0000037

Reply via email to