Re: [hackers] [sbase] [PATCH] sed: fix bug in find_delim

From: Michael Forney <mforney_AT_mforney.org>
Date: Thu, 26 Oct 2017 21:46:58 -0700

On 2017-10-25, Pieter Kockx <pieterkockx_AT_gmail.com> wrote:
> Hello everyone
>
> sed 's/[[x=]//'
>
> 's/[[x=]//' was parsed as 's/[[=x]//' which (correctly)
> raises an error because the "second delimiter is missing", here =].
>
> The two got mixed up because the parser didn't return to
> the "inside bracket"-state after encountering an opening bracket
> while inside the bracket expression.

Hi Pieter,

Thanks, this patch looks good to me. I'll wait a few more days before
applying in case Evan Gates wants to comment since he is the original
author.

> -- Pieter
Received on Fri Oct 27 2017 - 06:46:58 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 27 2017 - 06:48:20 CEST