The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.51 / (download) - annotate - [select for diffs], Fri Jan 20 01:26:02 2023 UTC (13 months, 2 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: triaxx-drm, HEAD
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

s/delimeter/delimiter/ in comment.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Mar 13 15:46:54 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.49: +5 -2 lines
Diff to previous 1.49 (colored)

Handle \t too (RVP)

Revision 1.49 / (download) - annotate - [select for diffs], Thu Mar 11 22:31:19 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.48: +2 -3 lines
Diff to previous 1.48 (colored)

remove extra increment; fixes: echo o | sed -e 's/o/\a/'

Revision 1.47.16.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:47 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.47: +146 -5 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 5 20:23:55 2019 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.47: +146 -5 lines
Diff to previous 1.47 (colored)

Recognize \oOOO \dDD \xXX plus the other regular 'C' backslash escapes like
gnu sed does, except when inside regex []. (Gnu sed translates those too,
unless --posix is specified).

Revision 1.47 / (download) - annotate - [select for diffs], Tue Apr 5 00:13:03 2016 UTC (7 years, 11 months 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-20190609, 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, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored)

PR/49872:Yorick Hardy: sed functions 'i' and 'a' discard leading white space
FIxed as suggested, behavior now matches gnu-sed.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Mar 12 12:40:41 2015 UTC (8 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.45: +5 -108 lines
Diff to previous 1.45 (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.45 / (download) - annotate - [select for diffs], Sun Mar 1 00:51:08 2015 UTC (9 years ago) by asau
Branch: MAIN
Changes since 1.44: +2 -5 lines
Diff to previous 1.44 (colored)

Move run-time data structures into processing part.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Feb 28 21:56:53 2015 UTC (9 years ago) by asau
Branch: MAIN
Changes since 1.43: +108 -2 lines
Diff to previous 1.43 (colored)

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

Revision 1.37.12.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:03 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.37.12.1: +302 -233 lines
Diff to previous 1.37.12.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

Rebase to HEAD as of a few days ago.

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

Rebase.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 26 02:14:32 2014 UTC (9 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, netbsd-7
Changes since 1.42: +6 -2 lines
Diff to previous 1.42 (colored)

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

Revision 1.42 / (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.41: +2 -6 lines
Diff to previous 1.41 (colored)

usage is __dead. Kill useless sccsid.

Revision 1.41 / (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.40: +289 -230 lines
Diff to previous 1.40 (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: +381 -213 lines
Diff to previous 1.1.1.1 (colored)

import today's FreeBSD sed.

Revision 1.37.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:42:49 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.37.6.1: +19 -9 lines
Diff to previous 1.37.6.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (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.40 / (download) - annotate - [select for diffs], Mon May 5 17:12:11 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.39: +18 -8 lines
Diff to previous 1.39 (colored)

Handle a closing brace at the end of a command without a preceding semi-colon:
/foo/ {p;d}

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 28 15:04:35 2013 UTC (10 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: 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
Branch point for: tls-earlyentropy
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Fix violations of the sequence point rule.

Revision 1.37.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:38 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

resync with head

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:40 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

sync with head

Revision 1.37.8.1 / (download) - annotate - [select for diffs], Tue Dec 25 21:10:35 2012 UTC (11 years, 2 months ago) by snj
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, 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.37: +3 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #764):
	usr.bin/sed/compile.c: revision 1.38
Fix memory leak.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Dec 14 08:16:51 2012 UTC (11 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

Fix memory leak.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Feb 19 16:35:27 2010 UTC (14 years ago) by tnn
Branch: MAIN
CVS Tags: 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-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-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, 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.36: +49 -34 lines
Diff to previous 1.36 (colored)

Merge the following revisions from OpenBSD to let sed(1) handle
arbitrarily long lines (closes our PR bin/42261).
openbsd/usr.bin/sed/extern.h 1.5
openbsd/usr.bin/sed/main.c 1.13-1.15
openbsd/usr.bin/sed/misc.c 1.8
openbsd/usr.bin/sed/compile.c 1.25-1.28
openbsd/usr.bin/sed/defs.h 1.4

Revision 1.35.20.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:04 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

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

Revision 1.36 / (download) - annotate - [select for diffs], Mon Apr 13 07:29:55 2009 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored)

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

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Tue Nov 18 19:01:00 2008 UTC (15 years, 3 months ago) by snj
Branch: netbsd-4
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1224):
	usr.bin/sed/compile.c: revision 1.35
provide _POSIX2_LINE_MAX if not there.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Apr 17 20:30:29 2007 UTC (16 years, 10 months ago) by christos
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, 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, 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
Branch point for: jym-xensuspend
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored)

provide _POSIX2_LINE_MAX if not there.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:17:07 2006 UTC (17 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.33: +6 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jun 18 05:16:41 2006 UTC (17 years, 8 months ago) by gdamore
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: netbsd-4
Changes since 1.33: +6 -2 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Thu May 11 17:18:19 2006 UTC (17 years, 9 months ago) by mrg
Branch: MAIN
Branch point for: chap-midi
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

when calling compile_tr() add (void *) to the 2nd argument's cast chain.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 2 03:47:26 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.31: +11 -15 lines
Diff to previous 1.31 (colored)

Coverity CID 878: Remove impossible tests against NULL pointers.

Revision 1.25.2.3.2.1 / (download) - annotate - [select for diffs], Sun Feb 6 08:31:40 2005 UTC (19 years, 1 month ago) by jmc
Branch: netbsd-2
CVS Tags: 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
Changes since 1.25.2.3: +3 -4 lines
Diff to previous 1.25.2.3 (colored) next main 1.26 (colored)

Pullup rev 1.31 (requested by matt in ticket #982)

	When adding text due to an a, c, or i command, don't eat the space(s) at
the beginning of the lines since the addition is supposed to be 'verbatim'.
Fix a comment for compile_text indicating it's also used for the 'c'
command.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Nov 17 22:17:54 2004 UTC (19 years, 3 months ago) by matt
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
Changes since 1.30: +3 -4 lines
Diff to previous 1.30 (colored)

When adding text due to an a, c, or i command, don't eat the space(s) at
the beginning of the lines since the addition is supposed to be "verbatim".
Fix a comment for compile_text indicating it's also used for the 'c' command.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Mon Aug 30 08:36:13 2004 UTC (19 years, 6 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-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
Branch point for: netbsd-2
Changes since 1.25.2.2: +3 -3 lines
Diff to previous 1.25.2.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Pull up revision 1.30 (requested by manu in ticket #795):
Yet another s/xmalloc/xrealloc/ so that large multi line text
can be added.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Mon Aug 30 08:34:48 2004 UTC (19 years, 6 months ago) by tron
Branch: netbsd-2-0
Changes since 1.25.2.1: +3 -3 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored)

Pull up revision 1.29 (requested by manu in ticket #795):
xmalloc()->xrealloc() so that patterns larger than _POSIX2_LINE_MAX*2-1
work.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 9 23:43:07 2004 UTC (19 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Yet another s/xmalloc/xrealloc/ so that large multi line text
can be added.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jul 9 16:34:29 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

xmalloc()->xrealloc() so that patterns larger than _POSIX2_LINE_MAX*2-1 work.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Jun 14 04:18:00 2004 UTC (19 years, 8 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.25: +28 -6 lines
Diff to previous 1.25 (colored)

Pullup rev 1.26-1.28 (requested by grant in ticket #494)

sed(1) fixes for PR#25899, PR#24234, PR#25911

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Jun 14 02:50:28 2004 UTC (19 years, 8 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.22: +28 -6 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Pullup rev 1.26-1.28 (requested by grant in ticket #1710)

sed(1) fixes for PR#25899, PR#24234, PR#25911

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jun 13 08:34:31 2004 UTC (19 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

apply patch in PR to avoid writing to unallocated memory.

fixes PR bin/25911 from SHIMIZU Ryo.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 13 08:31:30 2004 UTC (19 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

apply patch in PR to fix argument parsing bug.

fixes PR bin/24234 from Keisuke YOSHIDA.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jun 12 04:29:22 2004 UTC (19 years, 8 months ago) by minskim
Branch: MAIN
Changes since 1.25: +26 -5 lines
Diff to previous 1.25 (colored)

Fix a bug that made sed(1) fail if the last character of the line
buffer was a backslash.  This closes PR bin/25899.

Patch was borrowed from FreeBSD.  Their log says:

    Fix a bug in sed(1)'s "s" command wherein if an escape ("\"
    character) was initiated at the last character of the line buffer,
    the Wrong Thing was done and sed barfed by interpreting the
    following NUL byte as a digit.  Instead, pull up the next buffer
    and record that the "\" was last seen.

OK'ed by jmc@.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 7 11:15:49 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.24: +33 -3 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Fri Jun 14 00:41:42 2002 UTC (21 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.23: +31 -50 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jun 11 06:06:20 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 26 02:37:30 2002 UTC (22 years ago) by wiz
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.21: +3 -3 lines
Diff to previous 1.21 (colored)

Correct spelling of "delimiter", and remove from ignored-errors lists.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jan 23 19:07:34 2002 UTC (22 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Add a -E flag to ed(1) and sed(1) so that they can use extended
regular expressions instead of just basic regular expressions.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 14 19:37:30 2002 UTC (22 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.19: +10 -4 lines
Diff to previous 1.19 (colored)

Accept empty commands separated by semicolons; from Aymeric Vincent in
PR standards/15231.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 19 22:12:11 1998 UTC (25 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

char -> unsigned char

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 8 14:08:50 1998 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

avoid malloc(0)

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 19 23:05:11 1997 UTC (26 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, 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, netbsd-1-3
Changes since 1.16: +14 -12 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 19 05:23:48 1997 UTC (26 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.15: +6 -3 lines
Diff to previous 1.15 (colored)

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

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

RCS ID police

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Apr 28 22:26:51 1995 UTC (28 years, 10 months ago) by mrg
Branch: FREEBSD, CSRG
CVS Tags: lite-2
Changes since 1.1: +127 -62 lines
Diff to previous 1.1 (colored)

4.4BSD-Lite2

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 9 11:19:24 1995 UTC (29 years ago) by mycroft
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.13: +23 -25 lines
Diff to previous 1.13 (colored)

Compile group commands differently, using a stack rather than calling the
parser recursively.  Don't throw away commands after an end group.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Tue Nov 29 04:19:15 1994 UTC (29 years, 3 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-PATCH06
Changes since 1.11: +15 -7 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

patch 6: fix core dump on end of group.  from charles.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 15 19:03:25 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +6 -5 lines
Diff to previous 1.12 (colored)

Fix thinko in previous commit.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 9 19:30:32 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +11 -4 lines
Diff to previous 1.11 (colored)

Fix core dump on end of group reported by John Kohl, in a different way.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 17 04:19:27 1994 UTC (29 years, 10 months ago) by alm
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Branch point for: netbsd-1-0
Changes since 1.10: +35 -2 lines
Diff to previous 1.10 (colored)

echo hello | ./sed 'sl[l]lxl'
historically outputs:
hexlo

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

RCS id's

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

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

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 5 21:43:57 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Further patch by Havard Eidnes <Havard.Eidnes@runit.sintef.no> to avoid access
to uninitialized memory.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 20 22:24:17 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Patch to prevent core dumping when linked dynamically.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 4 01:36:29 1993 UTC (30 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

make with -DHISTORIC_PRACTICE to obtain the common EOF behavior of the "n"
command.  Don't be fussy about requiring spaces after the "w" command
though.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 13 02:26:39 1993 UTC (30 years, 6 months ago) by alm
Branch: MAIN
Changes since 1.4: +1 -8 lines
Diff to previous 1.4 (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:55 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Add RCS identifiers.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 16 07:41:14 1993 UTC (30 years, 8 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: +1 -1 lines
Diff to previous 1.2 (colored)

fixed regex initialization

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 27 01:14:14 1993 UTC (30 years, 9 months ago) by alm
Branch: MAIN
Changes since 1.1: +32 -1 lines
Diff to previous 1.1 (colored)

Fixed some regex bugs in sed
Added a regresssion test, compile.c.test

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 13 23:49:15 1993 UTC (30 years, 10 months ago) by alm
Branch: MAIN

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>