bug-grep
[Top][All Lists]
Advanced

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

Re: Using $ in quotes with characters after it


From: Paul Eggert
Subject: Re: Using $ in quotes with characters after it
Date: Thu, 22 Mar 2012 08:38:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1

On 03/21/2012 08:16 PM, Dan wrote:
> Hello,
> 
> I've noticed something strange when using grep.  It has to do with a
> pattern similar to this one: "hello$world".

My guess is that your shell is interpreting '$world' as the
empty string, usually.  (Depends on what identifier you're
using, 'world' being just one.)  Try using single quotes
rather than double.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]