bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed: Case-insensitive matching does not work


From: Francesco Potorti`
Subject: Re: sed: Case-insensitive matching does not work
Date: Fri, 11 Oct 2002 15:41:33 +0200

>       /href=raw/I s//href=pot/I
> 
> should be as readable as other sed instructions.  It expresses clearly
> what the line addess is and also that the substitution is performed
> case insensitive.

Now that I reread it, I understand what is confusing me.  In my opinion,
the syntax is counterintuitive.  As I would naturally read it, what you
wrote should mean:

Look for lines matching /href=raw/ insensitively to case, then
substitute whatever matched with /href=pot/.

If this were the case (and it is not), the last I would be useless.

Notice that the I modifier is the *only* modifier allowed after a
selection regexp, and it's a GNU extension.  Since I did not know about
it, I did not ever suspect that a modifier could follow a selection
regexp, while it is natural for me to think that an addition modifier
exists for case-insenstive matches in the usual place for modifiers,
that is, at the end.

Okay, anyway this is only one of the many issues with the sed manual,
which is way under usual GNU manual standards :-(




reply via email to

[Prev in Thread] Current Thread [Next in Thread]