On Wed, 12 Jul 2006 12:11:40 +0300, Shachar Shemesh wrote: > > Ehud Karni wrote: > > Shachar, you wrong. Gilad wants the `diff' program to see "$ID" not > > "\$ID" which is what '\$ID' gives to the application (diff does not > > substitute $ID with its environment value, bash does it). > > > Last time I checked, "$" in regexp meant "match end of line". '$Id' > would mean, if I understand this correctly, an "Id" coming AFTER the end > of the line (an impossible combination, I know, but still). If I want > grep to understand a literal "$", I need to pass it a "\$", which I can > do either by doing "\\\$Id" or '\$Id'. > > I stand by my original statement.
You are right. I'll say it again: YOU ARE RIGHT ! I take my statement back. I think a better way to pass the "$Id" would be '[$]Id' then you don't have to mess up with who is eating the backslash (and how many of them). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
