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

From: Pieter Kockx <pieterkockx_AT_gmail.com>
Date: Wed, 25 Oct 2017 07:46:48 +0000

Here's a second patch that makes the surrounding comments more in line with
the code, in my opinion.


On Wed, 25 Oct 2017 at 09:38 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.
>
> -- Pieter
>

Received on Wed Oct 25 2017 - 09:46:48 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 25 2017 - 09:48:25 CEST