Commit Graph
98 Commits
Author SHA1 Message Date
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
Ralf Wildenhues b651f13f6b manual fixes
2009-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* doc/sed-in.texi (Invoking sed): Add index entries for --posix,
	-s, --separate.
	(Other Commands): Fix typo.
	* doc/sed.texi: Regenerate.
2009-10-12 11:04:50 +02:00
Paolo Bonzini c91576d9b5 document how to separate commands
2009-09-07  Dmitry Chistikov <dd1email@gmail.com> (tiny change)

	* doc/sed-in.texi: Document how to separate commands.
2009-09-07 08:55:38 +02:00
Paolo Bonzini a45983f407 configury tweaks
2009-08-30  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add ssize_t.
	* configure.ac: Remove useless stuff, bump gettext requirement to 0.17.
2009-08-31 10:18:36 +02:00
Bake Timmons 026b129c6a Fix documentation typo.
2009-08-10  Bake Timmons  <b3timmons@speedymail.org> (tiny change)

	* doc/sed-in.texi: Fix typo.
2009-08-10 20:09:11 +02:00
Pádraig Brady 6f9a9b60da make -u unbuffer input files as per the documentation
* sed/execute.c: call setvbuf() to turn off input buffering
* sed/sed.c: rename unbuffered_output to more accurate unbuffered
* sed/sed.h: ditto
2009-07-22 18:42:09 +02:00
Paolo Bonzini 730fc21dd1 security fixes for partially created files
2009-06-25  Paolo Bonzini  <bonzini@gnu.org>

	* execute.c: Do not copy ACLs until the file is copied.
	* utils.c (ck_mkstemp): Set a restrictive umask on temporary files.
2009-06-25 20:54:10 +02:00
Paolo Bonzini 3817efe1dd preserve security contexts too on sed -i
2009-06-25  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add selinux-h.
	* execute.c: Copy over file creation context before creating a new file.
2009-06-25 20:53:47 +02:00
Paolo Bonzini 2b26b63822 add memchr module from gnulib again
2009-06-15  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add memchr again.
	* gnulib: Update.
2009-06-25 20:49:00 +02:00
Paolo Bonzini 47e188fb2c fix off-by-one bug causing -i problems under Cygwin
2009-06-11  Sergey Farbotka  <z8sergey8z@gmail.com>  (tiny change)

	* sed/execute.c (open_next_file): Fix off-by-one causing problems
	under Cygwin.
2009-06-11 12:09:56 +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 7dcd3eca60 declare bool arguments as int instead to please AIX XLC
2009-04-30  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/execute.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/utils.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/utils.h: Declare bool arguments as int instead to please AIX XLC.
2009-05-11 10:55:56 +02:00
Paolo Bonzini 67a10f7750 XFAIL bsd test where appropriate
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: XFAIL bsd test where appropriate.
2009-05-11 10:55:45 +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 c651492afc add rename module from gnulib
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add rename.
	* gnulib: Update.
2009-04-27 12:13:08 +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 d2779dddb6 update gnulib prior to release 2009-04-27 12:09:39 +02:00
Paolo Bonzini 9e05f0af86 fix macro redefinition warnings for bootstrap.sh
2009-03-31  Paolo Bonzini  <bonzini@gnu.org>

	* bootstrap.sh.in: Add __bool_true_false_are_defined.
	* bootstrap.sh: Regenerate.
	* basicdefs.h: Do not provide bool definitions for BOOTSTRAP at all.
2009-04-27 12:07:39 +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 d3083e2ead fix parsing of s commands for MBCS codes including \x5c
2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
	    Hideo AOKI <hideo.aoki.tk@hitachi.com>

	* sed/compile.c (match_slash): Fix MBCS behavior.
	* sed/sed.h (MBSINIT): New.
2009-04-27 12:03:39 +02:00
Paolo Bonzini 8299b37936 remove memchr, memcmp, memmove compatibility code.
2009-01-20  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf, bootstrap.sh.in: Remove memchr, memcmp, memmove
	compatibility code.
	* gnulib: Update.
2009-04-27 12:02:28 +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
Ralf Wildenhues 8bab9a6f77 Let --posix turn off more GNU extensions.
2008-12-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	Let --posix turn off more GNU extensions.
	* sed/compile.c (mark_subst_opts): Turn off subst options i, I,
	s, S, x, X, m, and M in --posix mode.
	(compile_address): Disallow address modifiers, `FIRST~STEP',
	`ADDR1,+N', and `ADDR1,~N' in --posix mode.
	(compile_program): In --posix mode, do not accept e or z commands;
	do not accept text between an a, c, or i command and the following
	backslash; do not accept an argument to the l command.
2008-12-31 10:07:07 +01:00
Paolo Bonzini 3759c68e60 remove INSTALL from .gitignore, add it to repository 2008-12-22 11:52:52 +01:00
Paolo Bonzini f20cce9961 use gnulib's emulation for mb functions
2008-12-22  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Request modules emulating mb functions.
	* configure.ac: Do not look for mb functions here.
2008-12-22 11:25:33 +01:00
Paolo Bonzini 30bc5aecd7 switch to GFDL 1.3 2008-11-04 07:58:50 +01:00
Jim Meyering 113e401ea4 switch to external gettext
2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
	    Jim Meyering  <meyering@redhat.com>

	* Makefile.am: Remove intl subdir.  Require Automake 1.10.
	* configure.ac: Remove useless macros, switch to external gettext.
	* lib/Makefile.am: Remove intl subdir from CPPFLAGS.
	* sed/Makefile.am: Remove intl subdir from CPPFLAGS.
2008-10-03 10:34:17 +02:00
Paolo Bonzini a9afc06ca2 sync autoboot with gnulib's build-aux/bootstrap
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-10-03 10:26:49 +02:00
Paolo Bonzini 34f20ed13a use git submodules for gnulib 2008-09-29 11:37:45 +02:00
Paolo Bonzini d9031cf783 update gnulib
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add vasnprintf.
	* basicdefs.h: Replace alloca cruft with alloca.h.
	* bootstrap.sh.in: Update for new gnulib.
	* bootstrap.sh: Update for new gnulib.
	* configure.ac: Move gnulib macros earlier.
	* sed/execute.c: Do not include acl.h when bootstrapping.
2008-09-29 10:53:40 +02: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
Paolo Bonzini 1e9ea64481 close input files if not in -i mode!
2008-08-27  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c (closedown): Close the input file!
2008-08-27 14:05:02 +02:00
Paolo Bonzini 06426944ad add m4/.gitignore file 2008-08-21 09:36:08 +02:00
Paolo Bonzini c391287a32 add gl_DISABLE_THREADS to configure.ac
2008-08-20  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Add gl_DISABLE_THREADS.
2008-08-21 09:32:09 +02:00
Ralf Wildenhues 87a14c0518 drop leading whitespace from the info documentation
2008-08-20  Ralf Wildenhues  <ralf.wildenhues@gmx.de

	* doc/sed-in.texi: Drop leading whitespace where appropriate,
	do not use TABs.
	* doc/sed.texi: Regnerate.
2008-08-21 09:32:08 +02:00
Paolo Bonzini f5d0816872 gnulib removed strverscmp.c
2008-08-19  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Do not include strverscmp.c.
2008-08-20 10:09:35 +02:00
Paolo Bonzini 2121a3b414 remove northpark.edu address for sed FAQ
2008-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Remove northpark.edu address for sed FAQ.
	* doc/sed.texi: Regenerate.
2008-07-21 19:25:59 +02:00
Paolo Bonzini 23933b640d clarify description of ^ and $ in the manual
2008-07-10  Paolo Bonzini  <bonzini@gnu.org>

        * doc/sed-in.texi: Make the description of ^ and $ more precise.
        * doc/sed.texi: Regenerate.
2008-07-11 14:12:53 +02:00
Paolo Bonzini f3f4680e98 update for newer gnulib
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Update for newer gnulib.
2008-05-15 10:22:45 +02:00
Paolo Bonzini 42f9191aa0 update bootstrap.sh
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* bootstrap.sh.in: Define bool, true, false.  Reported by
	Jason Stover.  Adjust for gnulib changes.
	* bootstrap.sh: Regenerate.
2008-05-14 21:35:12 +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 e332c757f7 fix bug with \& in POSIX mode, reported by Samuel Colin
2008-04-24  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (setup_replacement): Fix bug with \& in POSIX mode.
2008-04-24 16:24:09 +02:00
Paolo Bonzini 7b5737d022 add .gitattributes file 2008-04-10 11:36:04 +02:00
Paolo Bonzini 4fb5d4a879 Parenthesize assignment used as "for-loop" expression.
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/execute.c (open_next_file, get_backup_file_name): Avoid
	warnings from gcc.
2008-01-16 15:41:50 +01:00
Jim Meyering 1e9d9bff8b sed/compile.c: Avoid uninitialized variable usage in snarf_char_class
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/compile.c (snarf_char_class): Reverse order of conjuncts
	so that "delim" is not used uninitialized.
2008-01-16 15:03:42 +01:00
Jim Meyering 1c474855c0 sed/utils.c: Remove declaration of unused local, "fd".
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/utils.c (panic): Remove declaration of unused local, "fd".
2008-01-16 15:03:41 +01:00