sed command separator
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Wed Jul 3 11:55:55 UTC 2013
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/...'?
^
Cheers,
--
Cristian
More information about the busybox
mailing list