The NetBSD Project

CVS log for src/usr.bin/sed/process.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / sed

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.53 / (download) - annotate - [select for diffs], Fri May 15 22:39:54 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.52: +16 -4 lines
Diff to previous 1.52 (colored) to selected 1.10 (colored)

sed(1): Don't force a newline on last line, if input stream doesn't have one

While here, change how we check if the current line is the last one.
Before, we just checked if there were more files after the current one.
Now, we check the actual content of those files: they files may not have
a line at all. This matches the definition of the "last line" by the
Open Group.

The new behavior is closer to GNU sed.

From FreeBSD (9dd857db3dc558dc61dc8674d204ebc83cac0739), requested by mrg@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Mar 12 12:40:41 2015 UTC (9 years ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.51: +8 -198 lines
Diff to previous 1.51 (colored) to selected 1.10 (colored)

The latest refactoring changes broke sed -i:
    cd /tmp; echo foo > test; sed -i.orig s,fo,ba, test
Back them out until they are fixed.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 1 01:07:46 2015 UTC (9 years, 1 month ago) by asau
Branch: MAIN
Changes since 1.50: +6 -4 lines
Diff to previous 1.50 (colored) to selected 1.10 (colored)

Hide more subroutines in processing phase.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Mar 1 01:00:07 2015 UTC (9 years, 1 month ago) by asau
Branch: MAIN
Changes since 1.49: +5 -3 lines
Diff to previous 1.49 (colored) to selected 1.10 (colored)

Close files opened at processing time within processing phase.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Mar 1 00:51:08 2015 UTC (9 years, 1 month ago) by asau
Branch: MAIN
Changes since 1.48: +8 -4 lines
Diff to previous 1.48 (colored) to selected 1.10 (colored)

Move run-time data structures into processing part.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Mar 1 00:38:01 2015 UTC (9 years, 1 month ago) by asau
Branch: MAIN
Changes since 1.47: +5 -2 lines
Diff to previous 1.47 (colored) to selected 1.10 (colored)

Move data I/O file pointers into processing part.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Feb 28 21:56:53 2015 UTC (9 years, 1 month ago) by asau
Branch: MAIN
Changes since 1.46: +182 -3 lines
Diff to previous 1.46 (colored) to selected 1.10 (colored)

Improve modularity of "sed" source:
- move program source input subroutines into compiler part;
- move data I/O subroutines into processor part.

Revision 1.38.12.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:04 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.38.12.1: +293 -198 lines
Diff to previous 1.38.12.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.10 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Aug 18 07:44:03 2014 UTC (9 years, 7 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.45: +28 -20 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.10 (colored)

Pull up following revision(s) (requested by christos in ticket #34):
	usr.bin/sed/process.c: revision 1.46
PR/49109: Jeremie Le Hen: fix sed relative addressin (1,+N)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192108
http://svnweb.freebsd.org/base?view=revision&revision=269302
XXX: pullup 7.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Aug 13 11:35:34 2014 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.45: +28 -20 lines
Diff to previous 1.45 (colored) to selected 1.10 (colored)

PR/49109: Jeremie Le Hen: fix sed relative addressin (1,+N)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192108
http://svnweb.freebsd.org/base?view=revision&revision=269302
XXX: pullup 7.

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:58:55 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.39: +294 -199 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.10 (colored)

Rebase.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 26 02:14:32 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.44: +6 -2 lines
Diff to previous 1.44 (colored) to selected 1.10 (colored)

restore sccsid[]'s per core@'s decision

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jun 9 12:48:58 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.43: +14 -3 lines
Diff to previous 1.43 (colored) to selected 1.10 (colored)

PR/48883: Justin Cormack: Cope with systems that don't provide REG_STARTEND

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jun 7 16:36:54 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.42: +3 -4 lines
Diff to previous 1.42 (colored) to selected 1.10 (colored)

PR/48880: Ryo ONODERA: Unapply one of our patches that broke 'G'.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jun 7 06:02:27 2014 UTC (9 years, 9 months ago) by ryoon
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.10 (colored)

Restore G command

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jun 6 12:46:54 2014 UTC (9 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.40: +2 -6 lines
Diff to previous 1.40 (colored) to selected 1.10 (colored)

usage is __dead. Kill useless sccsid.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jun 6 00:13:13 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.39: +294 -209 lines
Diff to previous 1.39 (colored) to selected 1.10 (colored)

Merge our changes.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Jun 6 00:10:05 2014 UTC (9 years, 9 months ago) by christos
Branch: FREEBSD, CSRG
CVS Tags: FREEBSD20140605
Changes since 1.1.1.1: +300 -166 lines
Diff to previous 1.1.1.1 (colored) to selected 1.10 (colored)

import today's FreeBSD sed.

Revision 1.38.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:42:49 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.10 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.38.12.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:01 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.10 (colored)

resync from head

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Sat May 11 21:59:29 2013 UTC (10 years, 10 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.10 (colored)

Pull up following revision(s) (requested by uwe in ticket #888):
	usr.bin/sed/process.c: revision 1.39
	usr.bin/sed/sed.1: revision 1.30
	usr.bin/sed/sed.1: revision 1.31
The change ("c") command should start a new cycle.
Apply one line patch I posted in PR #45981 and document this in the
manual page.
Bump date for previous (PR #45981): the change ("c") command starts a
new cycle.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 17 21:02:54 2013 UTC (11 years ago) by uwe
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.10 (colored)

The change ("c") command should start a new cycle.

Apply one line patch I posted in PR #45981 and document this in the
manual page.

Revision 1.37.28.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:04 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.10 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.38 / (download) - annotate - [select for diffs], Mon Apr 13 07:29:55 2009 UTC (14 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored) to selected 1.10 (colored)

Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:17:07 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.36: +10 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.10 (colored)

Sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jun 18 05:16:41 2006 UTC (17 years, 9 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: jym-xensuspend
Changes since 1.36: +10 -2 lines
Diff to previous 1.36 (colored) to selected 1.10 (colored)

Make TOOL_SED, to allow using our own sed in cases where the host's version
is busted in some way.

The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include
nbtool_config.h in a cross build environment.

Combined with some other changes (not yet committed), this allows cross
compiling m68k code on Solaris 10/amd64.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 2 03:40:06 2006 UTC (18 years ago) by christos
Branch: MAIN
Branch point for: chap-midi
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.10 (colored)

Coverity CID 1181: Protect access against NULL.

Revision 1.26.4.2 / (download) - annotate - [select for diffs], Wed Apr 7 22:44:06 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-1-5
Changes since 1.26.4.1: +3 -3 lines
Diff to previous 1.26.4.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.10 (colored)

Pullup rev 1.34 (requested by itojun in ticket #108)

Prevent integer underflow.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Fri Mar 12 05:57:45 2004 UTC (20 years ago) by jmc
Branch: netbsd-1-6
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.10 (colored)

Pullup rev 1.34 (requested by itojun in ticket #1558)

Prevent integer underflow.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Nov 7 04:44:57 2003 UTC (20 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.34: +16 -10 lines
Diff to previous 1.34 (colored) to selected 1.10 (colored)

safer realloc, from openbsd

Revision 1.34 / (download) - annotate - [select for diffs], Fri Nov 7 03:58:06 2003 UTC (20 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.10 (colored)

prevent integer underflow.  freebsd rev 1.32.  via openbsd

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 7 11:15:50 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.32: +33 -3 lines
Diff to previous 1.32 (colored) to selected 1.10 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jun 14 00:41:42 2002 UTC (21 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.31: +17 -31 lines
Diff to previous 1.31 (colored) to selected 1.10 (colored)

Remove #if __STDC__. De-__P() and ANSIfy.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 11 06:06:20 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored) to selected 1.10 (colored)

err/errx/warn/warnx do not need \n at the end

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Sat Oct 27 20:06:50 2001 UTC (22 years, 5 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored) to selected 1.10 (colored)

Pull up revisions 1.27-1.30 (requested by atatat):
  Don't attempt memmove() if pattern space length is zero.
  Fixes PR#14074.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Oct 2 03:03:02 2001 UTC (22 years, 6 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) to selected 1.10 (colored)

Back out last patch (again).  This patch seems to satisfy test suites
that I've found, while the previous one did not.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 28 21:12:04 2001 UTC (22 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (colored) to selected 1.10 (colored)

New fix for PR bin/14074.  This one doesn't make sed hang.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 28 21:10:34 2001 UTC (22 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored) to selected 1.10 (colored)

Back out the pr fix.  It doesn't work.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 27 05:35:44 2001 UTC (22 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) to selected 1.10 (colored)

Don't attempt to memmove() if psl (pattern space length) is zero.
Fixes PR bin/14074: Simple expression core dumps sed.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:37:10 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) next main 1.26 (colored) to selected 1.10 (colored)

Pull up to last week's -current.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Nov 9 15:06:36 1999 UTC (24 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) to selected 1.10 (colored)

Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Fri Jun 25 20:54:31 1999 UTC (24 years, 9 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.10 (colored)

pullup 1.24->1.25 (Kimmo Suominen)

Revision 1.25 / (download) - annotate - [select for diffs], Mon May 31 04:46:33 1999 UTC (24 years, 10 months ago) by kim
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) to selected 1.10 (colored)

Fix bug pointed out by Jerry Peek <jpeek@jpeek.com> in PR bin/7674.
If hold space null when doing an 'G', make sure it contains a newline.
Fix copied from revision 1.17 where cgd applied a fix for 'x'.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 19 22:12:32 1998 UTC (25 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Changes since 1.23: +21 -7 lines
Diff to previous 1.23 (colored) to selected 1.10 (colored)

char -> unsigned char
compensate for not having REG_STARTEND

Revision 1.23 / (download) - annotate - [select for diffs], Tue Aug 25 20:59:40 1998 UTC (25 years, 7 months ago) by ross
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored) to selected 1.10 (colored)

Add { and } to shut up egcs. Reformat the more questionable code.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 30 02:29:28 1998 UTC (26 years ago) by mrg
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) to selected 1.10 (colored)

use int as array index.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Wed Oct 22 19:57:28 1997 UTC (26 years, 5 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.10 (colored)

Pull up from trunk:

Remove an extra semicolon that broke processing of the "r" directive.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Oct 22 19:51:58 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.10 (colored)

Remove an extra semicolon that broke processing of the "r" directive.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 19 23:05:16 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.19: +15 -11 lines
Diff to previous 1.19 (colored) to selected 1.10 (colored)

WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 19 05:23:50 1997 UTC (26 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.18: +12 -9 lines
Diff to previous 1.18 (colored) to selected 1.10 (colored)

merge lite-2 -- was mostly already done.  grr.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 9 20:21:32 1997 UTC (27 years, 2 months ago) by tls
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored) to selected 1.10 (colored)

RCS ID police

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 11 04:09:50 1995 UTC (28 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.10 (colored)

fix bug pointed out by Dennis Ferguson <dennis@mci.net>.  if hold space null
when doing an 'x', make sure it contains a newline.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Apr 29 17:29:09 1995 UTC (28 years, 11 months ago) by mrg
Branch: FREEBSD, CSRG
CVS Tags: lite-2
Changes since 1.1: +92 -70 lines
Diff to previous 1.1 (colored) to selected 1.10 (colored)

4.4BSD-Lite2

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 15 12:12:16 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.15: +6 -4 lines
Diff to previous 1.15 (colored) to selected 1.10 (colored)

The `D' command should only input a new line if the pattern space becomes empty.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 15 11:25:10 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.14: +8 -8 lines
Diff to previous 1.14 (colored) to selected 1.10 (colored)

Fix the P command, and optimize D slightly.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 15 11:13:30 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.13: +2 -6 lines
Diff to previous 1.13 (colored) to selected 1.10 (colored)

Remove an old #ifndef of little value.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 24 15:55:01 1994 UTC (30 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.10 (colored)

Fix bug with D leaving junk at end of pattern space.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 1 06:32:54 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.11: +31 -13 lines
Diff to previous 1.11 (colored) to selected 1.10 (colored)

DTRT with empty RE matches.  or at least, do something better.  fix off
to bostic and dspin.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 28 07:00:00 1994 UTC (30 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Restore the traditional behaviour of the "n" command.

Revision 1.10 / (download) - annotate - [selected], Wed Feb 9 00:06:07 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

patch from Diomidis Spinellis to fix 'infinite' loop

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 3 23:44:57 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored) to selected 1.10 (colored)

RCS id's

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 3 23:32:24 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: BSD44
Changes since 1.7: +57 -58 lines
Diff to previous 1.7 (colored) to selected 1.10 (colored)

update from Diomidis Spinellis <dspin@leon.nrcps.ariadne-t.gr>

Revision 1.7 / (download) - annotate - [select for diffs], Sat Aug 14 20:00:00 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.10 (colored)

Put back RCS identifier.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 14 03:06:53 1993 UTC (30 years, 7 months ago) by alm
Branch: MAIN
Changes since 1.5: +6 -5 lines
Diff to previous 1.5 (colored) to selected 1.10 (colored)

Was testing against rm_so instead of rm_eo.  So now:
$ echo aabb | sed 's/\(.*\)\1/(\1)/g'
(a)(b)(c)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 13 02:26:40 1993 UTC (30 years, 7 months ago) by alm
Branch: MAIN
Changes since 1.4: +6 -2 lines
Diff to previous 1.4 (colored) to selected 1.10 (colored)

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)

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 1 18:08:51 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) to selected 1.10 (colored)

Add RCS identifiers.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 2 09:50:36 1993 UTC (30 years, 9 months ago) by alm
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.10 (colored)

added missing parens in buffer allocation (caused seg violation)

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 8 10:08:44 1993 UTC (30 years, 10 months ago) by alm
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.10 (colored)

fixed HS initialization bug; swapping HS (`x') before a hold (`h')
command set the pattern space to NULL

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 13 23:49:28 1993 UTC (30 years, 11 months ago) by alm
Branch: MAIN
Diff to selected 1.10 (colored)

added Berkeley sed with mods to use GNU regex

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>