On Thu Jun 14 04:29:51 EDT 2012, pau...@gmail.com wrote:
> While playing with grep, I was suprised by grep '*\.c' not giving
> an error (* is missing an operand). Arguably * applied to empty
nope, that's not right.  * starting a pattern escapes the whole string.
this is unique to grep.

from grep(1):

          [....]  An expression
          starting with '*' will treat the rest of the expression as
          literal characters.

- erik

Reply via email to