Commit Graph

24 Commits

Author SHA1 Message Date
christos ea2df27a8f char -> unsigned char
compensate for not having REG_STARTEND
1998-12-19 22:12:32 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mrg 505c7f6151 use int as array index. 1998-03-30 02:29:28 +00:00
thorpej 229db4813c Remove an extra semicolon that broke processing of the "r" directive. 1997-10-22 19:51:58 +00:00
lukem 2237cf10d6 WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF 1997-10-19 23:05:11 +00:00
mrg 59a949ac9c merge lite-2 -- was mostly already done. grr. 1997-10-19 05:23:48 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
cgd 637e8bb002 fix bug pointed out by Dennis Ferguson <dennis@mci.net>. if hold space null
when doing an 'x', make sure it contains a newline.
1995-07-11 04:09:50 +00:00
mycroft 23f31f5bcd The `D' command should only input a new line if the pattern space becomes empty. 1995-03-15 12:12:16 +00:00
mycroft c92e174d74 Fix the P command, and optimize D slightly. 1995-03-15 11:25:10 +00:00
mycroft 9a90db1e8e Remove an old #ifndef of little value. 1995-03-15 11:13:30 +00:00
mycroft f8e2732fe8 Fix bug with D leaving junk at end of pattern space. 1994-03-24 15:55:01 +00:00
cgd 6cc95e4fee DTRT with empty RE matches. or at least, do something better. fix off
to bostic and dspin.
1994-03-01 06:32:54 +00:00
andrew 14f1242b37 Restore the traditional behaviour of the "n" command. 1994-02-28 07:00:00 +00:00
cgd 054d17fafb patch from Diomidis Spinellis to fix 'infinite' loop 1994-02-09 00:06:07 +00:00
cgd 8a8b69552f RCS id's 1994-02-03 23:44:40 +00:00
cgd 5beaa48900 update from Diomidis Spinellis <dspin@leon.nrcps.ariadne-t.gr> 1994-02-03 23:32:10 +00:00
mycroft 3c52920854 Put back RCS identifier. 1993-08-14 20:00:00 +00:00
alm 5ef7fe2b6a Was testing against rm_so instead of rm_eo. So now:
$ echo aabb | sed 's/\(.*\)\1/(\1)/g'
(a)(b)(c)
1993-08-14 03:06:53 +00:00
alm b6b50355eb removed GNU_REGEX directive
catch infinite substitution for the following cases:
echo hi | sed 's/$/a/g' (prints hia)
echo hi | sed 's/h*/x/g' (terminates with error: infinite substitution)
1993-08-13 02:26:38 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
alm fe8b331915 added missing parens in buffer allocation (caused seg violation) 1993-07-02 09:50:36 +00:00
alm f50fa96eef fixed HS initialization bug; swapping HS (`x') before a hold (`h')
command set the pattern space to NULL
1993-05-08 10:08:44 +00:00
alm bb106b2b49 added Berkeley sed with mods to use GNU regex 1993-04-13 23:49:12 +00:00