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.
Ehud.
Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html


=================================================================
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]

Reply via email to