[PATCH 2/2] sed: terminate branch commands at }

Harald van Dijk harald at gigawatt.nl
Wed Mar 5 13:05:26 UTC 2025


On 05/03/2025 12:57, Csókás Bence wrote:
> Hi,
> 
> On 2025. 03. 05. 5:38, Jeremy Drake wrote:
>> in GNU sed, `echo foo | sed -e '/bar/{b};d'` is valid, but in busybox
>> sed would fail with unmatched {.
> 
> I beg to differ:
>      $ echo foo | sed -e 'bar{b};d'

You changed the test. The original message had /bar/, not bar.

Cheers,
Harald van Dijk


More information about the busybox mailing list