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

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

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:38:49 CEST

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