|
From: | Paul Eggert |
Subject: | bug#18377: piping output through egrep -- escaping of "+" only needed sometimes. Why? |
Date: | Mon, 01 Sep 2014 01:05:51 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
address@hidden wrote:
Why do I need to escape the "+" in the last case, but not in the first?
Because "+" is a special character to egrep. The pattern "libstdc++" is equivalent to the pattern "libstdcc*" which matches in the first case, whereas the pattern "libstdc++.so" is equivalent to the pattern "libstdcc*.so" which does not match in the last case.
[Prev in Thread] | Current Thread | [Next in Thread] |