[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed 3.02 bug
From: |
Paul Jarc |
Subject: |
Re: sed 3.02 bug |
Date: |
Mon, 11 Feb 2002 14:15:22 -0500 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) |
Huy Le <address@hidden> wrote:
> address@hidden +D ~/.procmail% echo '\?' | sed 's/\\\?/@/g'
> @@?@
You correctly used \\ to match \ in the input, but then you used \? to
match a literal ?. Use a plain ? instead; \? is the special form that
makes the previous component optional. Regexp syntax is described in
the man page for ed.
paul