sed argument processing b0rked?

Lars Kellogg-Stedman lars at oddbit.com
Tue Jun 21 15:33:28 UTC 2011


> Aha... I knew it had to be something.  I couldn't quite wrap my head around the idea that sed is misbehaving.. it seems way too old and set in its ways for that.   However, I did get the -i'' syntax from somewhere.. perhaps it's a GNUism and I just forgot where I picked it up.

In GNU sed, the -i option does not require an argument, so "sed -i -e
's/a/b/' -e 's/c/d/' ..." is legal syntax.


More information about the freebsd-questions mailing list