Subject: bug in sed
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: John F. Woods <jfwhome!jfw@uunet.UU.NET>
List: current-users
Date: 03/24/1994 08:26:56
In building sc 6.21, I discovered that sed is misbehaving.  Given the
sed command line

sed -e '/Revision/!D' -e 's/.*$Revision: \([0-9.]*\) .*/\1/' version.c

with the input file

/*
 * CODE REVISION NUMBER:
 *
 * The part after the first colon, except the last char, appears on the screen.
 */

char *rev = "$Revision: 6.21 $";

the output of sed (compiled from Saturday's source) is

Oe/6.21

I'll try to research it further tonight.


------------------------------------------------------------------------------