AW: sed command separator

dietmar.schindler at dietmar.schindler at
Wed Jul 3 13:33:27 UTC 2013

> Von: busybox-bounces at [mailto:busybox-bounces at] Im Auftrag von Cristian
> Ionescu-Idbohrn
> Gesendet: Mittwoch, 3. Juli 2013 13:56
> Just noticed this behaviour:
> With 'sed (GNU sed) 4.2.2':
> $ printf 'foo\nbar baz\n' | sed -e '/baz/!ds/[[:blank:]]*bar[[:blank:]]*//'
> sed: -e expression #1, char 8: extra characters after command
> With 'BusyBox v1.20.2', various archs:
> $ printf 'foo\nbar baz\n' | busybox sed -e '/baz/!ds/[[:blank:]]*bar[[:blank:]]*//'
> baz
> Shouldn't the regex syntax be '/baz/!d;s/...'?

Actually, it's the sed syntax (the ';' is not part of a regex), but yes, it should.
manroland web systems GmbH -- Managing Director: Eckhard Hoerner-Marass
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No. 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail

More information about the busybox mailing list