I figured out where the problem is, and wrote PR misc/126682 against sed. The PR includes a patch which fixes this problem, and hasn't caused any more as far as I can tell. -- Best regards, Derek Tattersall dlt at mebtel.net dlt666 at yahoo.com dtatters at gmail.com