Weird characters in email [was Re: using locate properly]
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
Reply to: