On Mon, 2007-03-05 at 16:02 -0600, Marshall McMullen wrote: > No, I cannot get sed to work. It fails with exactly the same behavior, > but I haven't tracked it down yet. I'm assuming it must have something > to do with the same thing, but I'm not sure......
While looking why we do not have this problem I found this patch applied by my toolsbox to sed-4.1.4... /haubi/
--- sed-4.1.4/lib/regex_internal.c.orig 2006-08-09 11:38:58.387831000 +0200 +++ sed-4.1.4/lib/regex_internal.c 2006-08-09 11:38:03.337832000 +0200 @@ -883,6 +883,9 @@ re_node_set *set; int size; { + if ( size == 0 ) + return REG_NOERROR; + set->alloc = size; set->nelem = 0; set->elems = re_malloc (int, size);