On 11 July 2012 15:16, David Korn <[email protected]> wrote:
> cc:  [email protected]
> Subject: Re: Re: [ast-developers] Re: Get ~(E) fixed or remove it
> --------
>
>> Lets say, I'm not happy with the number of issues with ~(....) either
>> > but please do not do such drastic steps.
>> > I think the problem is:
>> > 1. Lack of clear rules how quoting in ~(....), especially ~(E), works
>> > 2. Lack of clear documentation of said rules
>> > 3. Lack of diagnostics, e.g. it is not possible for a script developer
>> > to check how, and I consider neither gdb nor dbx options here, the
>> > grep/egrep/xgrep/pcre pattern looks like when it is passed to
>> > regcomp()
>> >
>> > Irek
>> >
>
> The shell quoting rules, and the ere quoting rules are not always
> the same, so for complex patterns, I recommand using
>
> pattern='~(E)...'
> and
>         ${var/$pattern/string}
> This should always work.  If it doesn't, this is a bug.
>
>  ~(E) patterns are useful so removing them is counter productive.

So how would a standard proposal for the Austin Group look like? Like
" you have to use pattern='~(E)...';...${var/$pattern/string} " and
all other usage is undefined? Really? That can't be true.

Lionel
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to