Re: Patch to handle empty sed expressions

2007-01-02 Thread Otto Moerbeek
On Mon, 1 Jan 2007, Matthew R. Dempsky wrote: > Some packages (e.g., binutils 2.17) want to issue sed commands like > > s,^.*/,,;s,^,avr-,;;s/$// > > but OpenBSD's sed doesn't handle empty expressions as in this. The > patch below adds support for this. > > (It also eliminates a useless null

Patch to handle empty sed expressions

2007-01-01 Thread Matthew R. Dempsky
Some packages (e.g., binutils 2.17) want to issue sed commands like s,^.*/,,;s,^,avr-,;;s/$// but OpenBSD's sed doesn't handle empty expressions as in this. The patch below adds support for this. (It also eliminates a useless null pointer check: p is checked for nullity when it is set a few