26 Commits
Author SHA1 Message Date
Paolo Bonzini 8c7d077764 fix \x26 on RHS of s command
2012-04-13  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (convert_number): Remove default_char argument,
	expect buf to point to it.  Remove maxdigits argument and compute
	it on the fly.
	(normalize_text): Unify calls to convert_number under the convert
	label.  For TEXT_REPLACEMENT add a backslash to the output if
	convert_number returns ch == '&'.
2012-04-13 10:42:53 +02:00
Yury G. Kudryashov 727f353d70 override LC_ALL in testsuite rather than LANG
2009-10-14  Yuri G. Kudryashov  <urkud.urkud@gmail.com> (tiny change)

	* testsuite/Makefile.tests: Override LC_ALL, not LANG.
2009-10-14 10:54:09 +02:00
Paolo Bonzini f94164fd9f fix bug with s/[[[]//
2009-05-11  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (snarf_char_class): Fix logic bug with [[[ in regular
	expressions (and a possibly uninitialized use of variable delim stemming
	from the bug).  Uninitialized variable bug reported by Zhongxing Xu.
	* testsuite/brackets.good: New.
	* testsuite/brackets.inp: New.
	* testsuite/brackets.sed: New.
	* testsuite/Makefile.am: Add test.
	* testsuite/Makefile.tests: Add test.
2009-05-11 10:56:05 +02:00
Paolo Bonzini 1104ef346a fix copyright years and notice
2009-05-11  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Define COPYRIGHT_YEAR.
	* Makefile.am (dist-hook): Test it.
	* sed/mbcs.c: Fix copyright years.
	* sed/sed.c: Fix copyright years.  Change COPYRIGHT_NOTICE to
	COPYRIGHT_YEAR.
	* sed/utils.c: Fix copyright years.
	* testsuite/version.gin: Use COPYRIGHT_YEAR.
2009-05-11 10:56:04 +02:00
Paolo Bonzini 0270ded98d fix readin test properly
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Do not create homonymous links from builddir to srcdir.
	* testsuite/Makefile.tests: Create readin.in2 here.
	* testsuite/Makefile.am: Do not distribute it.
2009-05-11 10:55:24 +02:00
Paolo Bonzini 888ad7b090 handle CRLF endings in the testsuite for mingw
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.tests: Handle CRLF endings for mingw.
2009-04-27 12:14:34 +02:00
Paolo Bonzini 8dfd22c9e7 fixes after Bruno's testing
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Link readin.in2 into builddir.
	* configure: Regenerate.
	* doc/Makefile.am: Do not distribute sed.html.  Do not update
	sed.texi if the output does not change.
	* sed/Makefile.am: Order libraries according to their dependencies.
	* sed/compile.c (get_openfile): Declare FAIL as int.
	* sed/sed.c: Avoid printf ("") if REG_PERL is not defined.
	* testsuite/eval.in2: Do not include in the repository.
	* testsuite/Makefile.am: Clean always eval.in2 and never readin.in2.
	* testsuite/Makefile.tests: Provide a default empty definition of TIME
	and remove rules for readin.in2.
2009-04-27 12:11:54 +02:00
Paolo Bonzini a47e642f46 improve `sed --version' output
2009-03-31  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (contact): New.
	(usage): From here.
	(main): Use it for `sed --version' too.

        * configure.ac: Point to GNU project mailing lists.
        * sed/sed.c (contact): Use PACKAGE_BUGREPORT.
        * testsuite/version.gin: Likewise.
        * testsuite/version.good: Regenerate.
        * doc/sed.1: Regenerate.

        * bootstrap.sh.in (PACKAGE_BUGREPORT): New.
        * bootstrap.sh: Regenerate.
2009-04-27 12:07:38 +02:00
Paolo Bonzini 1955fc850f include homepage URL in help messages.
2009-02-17  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (usage): Print homepage URL.
	* testsuite/version.gin: Update.
2009-04-27 12:06:07 +02:00
Paolo Bonzini 9497348a67 do not print the bug report address when --help is printed and exit status != 0
2009-01-28  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (usage): Only print the bug report address for `sed --help'.
	(main): Print it for `sed --version' too.
	* testsuite/version.gin: Adapt.
	* testsuite/Makefile.tests: Refine help message test.
2009-04-27 12:04:38 +02:00
Paolo Bonzini ca6b418608 fix "x", "g", "G" commands with "sed -i" to match BSD sed
2009-01-05  Paolo Bonzini  <bonzini@gnu.org>

        * execute.c (read_pattern_space): Reset hold space at end-of-file
	if input->reset_at_next_file.
2009-01-05 17:03:45 +01:00
Paolo Bonzini 42ee512d47 add `z' extension
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* BUGS: Document s/.*.// behavior with invalid multibyte sequences.
	* NEWS: Document `z' extension.
	* doc/sed-in.texi: Document both things.
	* sed/compile.c (compile_program): Recognize `z'.
	* sed/execute.c (execute_program): Execute `z'.
	* testsuite/Makefile.am: Add badenc test.
	* testsuite/Makefile.tests: Add badenc test.
	* testsuite/badenc.good: New.
	* testsuite/badenc.inp: New.
	* testsuite/badenc.sed: New.
2008-09-29 10:30:29 +02:00
Paul Eggert 1215d0e830 treat 's&foo&\&&' compatibly with traditional 'sed'
2008-04-24  Paul Eggert  <eggert@twinsun.com>

	* sed/compile.c (match_slash): Treat 's&foo&\&&' compatibly with
	traditional 'sed'.
	* testsuite/bsd.sh: Add test case for this.
	* testsuite/bsd.good: Add test case output.
2008-04-24 16:24:12 +02:00
Paolo Bonzini 6cbea7cb7b merge from GNU sed up to patch-97
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
   switch to GPLv3

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-95
   document what's a GNU extension in sed(1)

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-96
   fix cross-device links with --follow-symlinks

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-97
   document q/Q in sed man page, improve html doc generation

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-40
2008-01-09 16:18:57 +01:00
Paolo Bonzini 78d70edda0 merge from GNU sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-91
   bump version to 4.1c and fix some warnings

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-92
   fix '/foo/i\'

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-39
2008-01-09 16:18:56 +01:00
Paolo Bonzini 1fc0a80a1a merge from GNU sed patch-{80,81,82} and from debian ssed package
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-80
   merge documentation fixes from debian ssed package

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-81
   autogenerate version.good within configure

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-82
   fix my own braindead-ness

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-34
2008-01-09 16:18:53 +01:00
Paolo Bonzini 561f677dda gnulibification and other sed merges
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-69
   don't rely on malloc(0) != NULL

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-71
   treat cygwin CR/LF correctly (and by design, not by chance)

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-72
   fix cygwin binary mounts

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-73
   accept NUL for `.'

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-74
   gnulibify and add ACL support

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-75
   more gnulib fixes, ensure regex tests use gnulib regex

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-76
   gnulibify part 2, use gnulib-tool in autoboot and remove PO files from repo

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-77
   always set LINGUAS, even if --skip-po

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-31
2008-01-09 16:18:50 +01:00
Paolo Bonzini 100396401f fix y/[/X/ and add more testcases for the y command
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-62
   fix y/[/X/ and add more testcases for the y command

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-27
2008-01-09 16:14:04 +01:00
Paolo Bonzini bb3c41042c sync with sed--stable--4.1
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-45
   do not add a default command-line in in-place editing mode

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-47
   fix handling of [^]xyz]

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-48
   add cache variable for -lcP test

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-49
   update FSF address

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-50
   more updates to the FSF address

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-51
   merge regex with glibc and adjust doc/.arch-inventory

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-52
   fix 0~2, signaled by Guglielmo Bondioni

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-53
   provide a better name for the man page

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-55
   remove RCS markers

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-56
   fix typo in docs/Makefile.am

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-57
   add LANG_SORBIAN and other mingw fixes

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-58
   fix sed faq address

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-24
2008-01-09 16:14:03 +01:00
Paolo Bonzini 8e23ae8366 implemented [[.a.]] and [[=a=]]
2005-02-10  Paolo Bonzini  <bonzini@gnu.org>

	* pcre/regposix.c (compile_branch_posix): Support [[.a.]] and
	[[=a=]] in a crippled way.
	* testsuite/pcre2.inp, testsuite/pcre2.good, testsuite/pcre2p.good:
	Test for it.

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-20
2008-01-09 16:14:01 +01:00
Paolo Bonzini faaf9ad2cd sync with sed--stable--4.1
2005-02-10  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/appquit.good, testsuite/appquit.inp,
	testsuite/appquit.sed: New testcase.
	* testsuite/readin.sed: Quit after the last r command.
	* testsuite/readin.good: Adjust.
	* sed/execute.c (execute_program): Dump the results of the
	a/r/R commands just before quitting.

2005-02-10  Paolo Bonzini  <bonzini@gnu.org>

	* sed/regexp.c: Fix off-by-one error in the "invalid reference
	to subexpression" message.  Debian bug 294339.

Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-42
   fix debian bug 294339

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-43
   fix crash on /\(\)/x

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-44
   fix a/r/R commands when q is encountered

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-19
2008-01-09 16:14:01 +01:00
Paolo Bonzini a3f130089b do not use leftmost-longest matching for addresses.
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-33
   do not use leftmost-longest matching for addresses.

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-15
2008-01-09 16:13:59 +01:00
Paolo Bonzini a1286e5f6e fix more gettext 0.14 fallout
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-18
   more portability improvements

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-10
2008-01-09 16:13:51 +01:00
Paolo Bonzini 296efaabed fix bug in /a*(a{2}b)/ (pattern aaaab), reported by Laurent Vogel
2004-10-29  Paolo Bonzini  <bonzini@gnu.org>

	* regstudy.c (prune_bracket): Distinguish correctly the
	character class at the beginning vs. at the ending of a
	subexpression.  Be more precise in the presence of alternatives
	and optional subexpressions.

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-4
2008-01-09 16:13:49 +01:00
Paolo Bonzini a620e7d5fb initial ssed import
Patches applied:

 * bonzini@gnu.org--2004/sed--stable--4.1--base-0
   initial import

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-1
2008-01-09 16:13:48 +01:00
Paolo Bonzini 9c9919efe2 initial import
(automatically generated log message)

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0
2004-10-20 21:42:31 +00:00