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

Re: Weird characters in email [was Re: using locate properly]



This one time, at band camp, Andy Saxena said:
> On Tue, Oct 08, 2002 at 03:15:19PM +0200, Robert Wilhelm Land wrote:
> > This could be more a question of bash fundamentals:
> > 
> > By trying to find Muttrc on my HDD I used the locate
> > program.
> > 
> > This was the command I ueed:
> > 
> > rland@MINI:~$ locate [Mm]uttrc
> > ... no reaction.
> > 
> > Rereading the info gave me:
> > "
> > Patterns can contain shell-style metacharacters:
> >       &pi0;*', &pi0;?', and &pi0;[]'.  The metacharacters do not  treat  
> > &pi0;/'
> >       or  &pi0;.'   specially.   Therefore,  a pattern &pi0;foo*bar' can
> >       match a file name that contains &pi0;foo3/bar', and a  pattern
> >       &pi0;*duck*'   can   match   a   file   name   that   contains
> >       &pi0;lake/.ducky'.   Patterns  that   contain   metacharacters
> >       should  be  quoted  to  protect them from expansion by the
> >       shell.
> > "
> > .....so I tried:
> > 
> > rland@MINI:~$ locate '[Mm]uttrc'
> > rland@MINI:~$ locate "[Mm]uttrc"
> > ...nothing.
> > 
> > But:
> > rland@MINI:~$ locate &pi0;[Mm]uttrc'
> > >
> 
> Is it just me or are others seeing weird characters in this email too? I
> am a lot of "&pi0" and also "|".
> 
> The following is my locale setting if this has anything to do with this.
> 
> $ locale
> LANG=en_US
> LC_CTYPE="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_COLLATE=C
> LC_MONETARY="en_US"
> LC_MESSAGES="en_US"
> LC_PAPER="en_US"
> LC_NAME="en_US"
> LC_ADDRESS="en_US"
> LC_TELEPHONE="en_US"
> LC_MEASUREMENT="en_US"
> LC_IDENTIFICATION="en_US"
> LC_ALL=
> 
> -Andy

Me too - some locales problem, probably.  "&pi0" is "`" (backtick, in
case it doesn't come across from me, either).  Not sure about the pipe
showing up.  

Steve

-- 
QOTD:
	"I tried buying a goat instead of a lawn tractor; had to return
	it though.  Couldn't figure out a way to connect the snow blower."

Attachment: pgp7Z1xWySAHH.pgp
Description: PGP signature


Reply to: