Commit Graph
189 Commits
Author SHA1 Message Date
Paolo Bonzini ddf5e28afb downgrade minimum requested version of gettext to 0.17.
2010-11-01  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Replace gettext with gettext-h.  Suggested by
	Gerald Pfeifer and Eric Blake.
	* configure.ac: Downgrade minimum requested version of gettext
	to 0.17.
2010-11-01 15:34:18 +01:00
Paolo Bonzini 699fd06fad Commit regenerated doc/sed.texi 2010-11-01 15:33:53 +01:00
Paolo Bonzini 971249a020 update .gitignore files 2010-10-31 22:56:22 +01:00
Paolo Bonzini 8eee8cbf0e 2010-10-31 Gerald Pfeifer <gerald@pfeifer.com>
* doc/sed-in.texi (Extended regexps): Add '|' to the list of
	differences.  Note that "\|" is a GNU extension to begin with.
2010-10-31 22:56:15 +01:00
Paolo Bonzini deb6f38c21 fix previous commit 2010-10-20 20:00:21 +02:00
Paolo Bonzini 30b44d95a2 fix lseek errors from flushing input pipes on interix
2010-10-20  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add fwriting.
	* sed/utils.c: Use it.
2010-10-20 19:57:31 +02:00
Paolo Bonzini 1c3de3387c change bug reporting address to bug-sed@gnu.org
2010-09-20  Paolo Bonzini  <bonzini@gnu.org>

	* doc/configure.ac: Mention bug-sed@gnu.org.
	* doc/sed.x: Mention bug-sed@gnu.org.
	* doc/sed-in.texi: Mention bug-sed@gnu.org.
2010-10-20 19:57:09 +02:00
Paolo Bonzini c6d32f0e91 bump minimal gettext version 2010-08-30 12:19:33 +02:00
Paolo Bonzini a9bf076c0b use version-etc-fsf
2010-08-30  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.am (dist-hook): Remove COPYRIGHT_YEAR check.
	* autoboot.conf (gnulib_modules): Add version-etc-fsf.
	* configure.ac (COPYRIGHT_YEAR): Remove.  Change package name to
	"GNU sed".
	* doc/sed.1: Regenerate.
	* sed/sed.c (AUTHORS): New.
	(main): Use version_etc.
2010-08-30 12:18:50 +02:00
Paolo Bonzini 7355d316a5 use "w" or "wb" modes for sed -i, s///w, w' and W' depending on --binary
2010-07-18  Paolo Bonzini  <bonzini@gnu.org>

	* sed.c (write_mode): New.
	(main): Initialize it to "wb" if --binary is passed.
	* sed.h (write_mode): New.
	* compile.c (mark_subst_opts, compile_program): Use it instead
	of "w".
	* execute.c (open_next_file): Pass write_mode to ck_mkstemp.
	* utils.c (ck_mkstemp): Accept mode, pass it to fdopen.  Constify.
	* utils.h (ck_mkstemp): Adjust prototype.
2010-08-17 01:56:55 +02:00
Paolo Bonzini e1c76b0344 fix imprecision in the documentation of `D'
2010-08-17  Paolo Bonzini  <bonzini@gnu.org>

	Fix imprecision in the documentation of `D'.
	* doc/sed-in.texi (D command): Fix documentation of behavior for
	pattern space ending with \n and with no other newline.
	Reported by Randall Cotton.
	* doc/sed.x (D command): Fix documentation of behavior for
	pattern space ending with \n and with no other newline.
	* doc/sed.texi: Regenerate.
	* doc/sed.1: Regenerate.

2010-07-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2010-08-17 01:56:36 +02:00
Ralf Wildenhues fbf10902f7 Let --posix turn off nonportable scripts ending in backslash.
* sed/compile.c (errors, INCOMPLETE_CMD): New error string.
(compile_program): In strict posix mode, complain about incomplete
command.
* NEWS: Update.
Report by Bruno Haible.
2010-08-17 01:56:36 +02:00
Paolo Bonzini a85e83d0db use mkostemp(template, 0) instead of mkstemp to work around Cygwin oddity
2010-07-16  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf (gnulib_modules): Replace mkstemp with mkostemp.
	* bootstrap.sh.in: Compile mkostemp.c instead of mkstemp.c.
        * gnulib: Update.
        * NEWS: Mention change.
	* sed/utils.c (ck_mkstemp): Use mkostemp to work around Cygwin
	oddity.  Reported by Stepan Kasal.
2010-07-16 22:01:35 +02:00
Paolo Bonzini 9c560534c8 fix typo in the manual
2010-05-03  Timothy Baker  <timothypaulbaker@gmail.com> (tiny change)

	* doc/sed.texi (Regular expressions): Fix typo.
2010-05-03 09:27:07 +02:00
Paolo Bonzini c85a5aeaf5 ignore INSTALL 2009-12-27 17:18:48 +01:00
Ralf Wildenhues 84066bf615 add F command.
2009-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* doc/sed.texi (Extended Commands): Document F command.
	* doc/sed-in.texi: Regenerate.
	* sed/compile.c (compile_program): Accept 'F' if not --posix.
	* sed/execute.c (open_next_file): Always initialize in_file_name.
	(execute_program): Handle 'F'.
	* configure.ac: Bump SED_FEATURE_VERSION.
	* NEWS: Update.
2009-12-27 17:18:29 +01:00
Paolo Bonzini 5d7d2b1cc2 fix debian bug 559539
2009-12-07  Clint Adams  <schizo@debian.org>  (tiny change)

	* sed/execute.c (open_next_file): If is_selinux_enabled returns -1,
	treat it as "disabled".
2009-12-07 14:40:18 +01:00
Paolo Bonzini 896b696912 fix ordering of chmod/chown operations
2009-10-15  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c (closedown): First change owner (while permissions
	stay 0?00), then mode.

2009-10-15  Paolo Bonzini  <bonzini@gnu.org>
2009-10-15 19:59:17 +02:00
Paolo Bonzini 20f68fb1ab handle incomplete sequences as if they were invalid
2009-10-15  Paolo Bonzini  <bonzini@gnu.org>
	    WANG Yunfeng  <uhuruh@gmail.com>

	* sed/execute.c (str_append, str_append_modified): Handle incomplete
	sequences as if they were invalid.
2009-10-15 19:59:10 +02:00
Paolo Bonzini db462e5466 update .pot file
2009-10-14  Paolo Bonzini  <bonzini@gnu.org>

	* po/sed.pot: Update.
2009-10-14 11:18:30 +02:00
Paolo Bonzini db7165280c more configury simplification
2009-10-14  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Use cache variables rather than AC_CHECK_FUNC.
2009-10-14 11:11:42 +02:00
Paolo Bonzini 089b72a0fe simplify some configury
2009-10-14  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Remove obselete configure tests.
	* sed/fmt.c: Assume limits.h is always present.
	* sed/utils.c: Assume vfprintf is always present.
2009-10-14 11:06:05 +02:00
Yury G. Kudryashov 8507c64bf5 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:52:16 +02:00
Ralf Wildenhues 0827424285 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:03:58 +02:00
Paolo Bonzini 365065b1d4 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:31 +02:00
Paolo Bonzini aa30554331 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:16:39 +02:00
Bake Timmons 593ca11bb8 Fix documentation typo.
2009-08-10  Bake Timmons  <b3timmons@speedymail.org> (tiny change)

	* doc/sed-in.texi: Fix typo.
2009-08-10 20:08:03 +02:00
Pádraig Brady 737ca5ec59 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:41:52 +02:00
Paolo Bonzini feaa20792f bump version number to 4.2.1
2009-06-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Bump version.
	* NEWS: Bump version.
	* gnulib: Update.
	* doc/sed.1: Regenerate.
v4.2.1
2009-06-27 15:25:59 +02:00
Paolo Bonzini fa01dd7e73 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-26 12:13:56 +02:00
Paolo Bonzini 5156c19b23 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-26 12:03:10 +02:00
Paolo Bonzini 06f17e218d do not use GIT_CONFIG_LOCAL
2009-06-26  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot: Do not use GIT_CONFIG_LOCAL.
2009-06-26 12:01:50 +02:00
Paolo Bonzini db28fcc669 add memchr module from gnulib again
2009-06-15  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add memchr again.
	* gnulib: Update.
2009-06-15 11:05:36 +02:00
Paolo Bonzini a9841cc3f2 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:31 +02:00
Paolo Bonzini 601f290184 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  Paolo Bonzini  <bonzini@gnu.org>
2009-05-11 10:47:06 +02:00
Paolo Bonzini ff839b08be 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:47:05 +02:00
Paolo Bonzini 5a30fa2129 bump version number 4.2 v4.2 2009-05-11 09:05:08 +02:00
Paolo Bonzini af03c28be2 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-04-30 10:47:30 +02:00
Paolo Bonzini 4381be08bd bump version v4.1f 2009-04-28 08:55:08 +02:00
Paolo Bonzini d42713f37e 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-04-28 08:55:08 +02:00
Paolo Bonzini f83ff94827 add rename module from gnulib
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add rename.
	* gnulib: Update.

2009-04-27  Paolo Bonzini  <bonzini@gnu.org>
2009-04-28 08:55:07 +02:00
Paolo Bonzini 03c3b0f2dc XFAIL utf8 tests where appropriate
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: XFAIL UTF-8 tests where appropriate.
2009-04-28 08:55:07 +02:00
Paolo Bonzini f7e125b54d 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 11:36:12 +02:00
Paolo Bonzini 8172184989 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 10:41:56 +02:00
Paolo Bonzini 9e971bab12 update gnulib prior to release 2009-03-31 10:02:59 +02:00
Paolo Bonzini ca7820220c 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-03-31 10:02:54 +02:00
Paolo Bonzini d0d16cec98 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-03-31 10:01:38 +02:00
Paolo Bonzini 694012c4e8 distribute utf8-3 and utf8-4 test files
2009-03-31  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.am: Distribute utf8-3 and utf8-4 test files.
2009-03-31 09:39:16 +02:00
Paolo Bonzini 6e42ecdb94 avoid failures on the utf8-[1234] tests
2009-02-17  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.tests: Rewrite rule for utf8-[1234].
	Reported by Ralf Wildenhues.
2009-02-17 10:36:14 +01:00
Paolo Bonzini ca37f7187e 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-02-17 10:35:03 +01:00