48 Commits
Author SHA1 Message Date
Paolo Bonzini 4c0c33f6bb document difference between "e" and "r" commands
2012-07-25  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Document difference between "e" and "r"
	commands.
2012-07-25 12:33:07 +02:00
Mike Frysinger ae8338ee1e sed(1): document address behavior across input files
2012-03-16  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed.x: Document address behavior across input files.
	* doc/sed.1: Regenerate.
2012-03-16 09:44:28 +01:00
Paolo Bonzini ee2a5bd0fa add -z/--null-data
2012-02-05  Paolo Bonzini  <bonzini@gnu.org>
            Jim Hill  <gjthill@gmail.com>

	* autoboot.conf: Change getline to getdelim.
	* doc/sed-in.texi: Document -z/--null-data.
	* doc/sed.texi: Regenerate.
	* sed/execute.c: Change '\n' to buffer_delimiter.
	* sed/sed.c: Add support for -z/--null-data.
	* sed/sed.h: Add buffer_delimiter.
	* sed/utils.c: Change ck_getline to ck_getdelim.
	* sed/utils.h: Change ck_getline to ck_getdelim.
	* NEWS: Document new option.
2012-03-16 08:50:10 +01:00
Paolo Bonzini 9c7c770820 document that . does not match newline in multi-line mode
2011-11-23  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Document how multiline mode affects matching
	newlines against period.  Reported by Dmitry Bolshakov.
2011-11-23 14:58:28 +01:00
Paolo Bonzini 564c30de0d document corner case of \l and \u, and simplify the code handling it
2011-05-27  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Explain behavior of \l and \u at the end
	of the replacement text.
	* doc/sed.texi: Regenerate.
	* sed/execute.c (append_replacement, do_subst): Further
	simplification.
2011-05-27 09:45:59 +02:00
Paolo Bonzini e3b3623c39 fix incorrect comments in the "Increment a number" example.
2011-05-27  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Fix incorrect comment in the "Increment a
	number" example.  Reported by Wu Liang and Micah Cowan.
        * doc/sed.texi: Regenerate.
2011-05-27 09:45:14 +02:00
Jari Aalto fd0da133a7 order command alphabetically in man page
2010-11-13  Jari Aalto  <jari.aalto@cante.net>

	* doc/sed.x: Order commands alphabetically.
2010-12-13 14:09:19 +01:00
Paolo Bonzini ac854c6b20 small fixes to "rename files" example
2010-11-10  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Fix double negation in comment, escape
	file names.
2010-12-13 14:09:19 +01:00
Paolo Bonzini ad0793145b Commit regenerated doc/sed.texi 2010-11-01 15:34:41 +01:00
Paolo Bonzini 9d53087645 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:30 +01:00
Paolo Bonzini 157f5391e0 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 14:06:44 +02:00
Paolo Bonzini a4fb8b02e0 fix typo in the manual
2010-05-03  Timothy Baker  <timothypaulbaker@gmail.com> (tiny change)

	* doc/sed.texi (Regular expressions): Fix typo.
2010-08-30 11:10:12 +02:00
Paolo Bonzini 0567fdb243 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 02:00:05 +02:00
Ralf Wildenhues 0ae2f2809b 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:20:11 +01: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
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
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 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 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 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
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 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 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 b8d58d678d merge from CVS sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-83
   don't download bad translations

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-84
   --posix disables all extensions to regular expressions

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-85
   bump version number to 4.1b

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-86
   document --follow-symlinks

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-87
   fixes from Ralf Wildenhues

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-35
2008-01-09 16:18:53 +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 7103958ea4 gnulib works!
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-78
   gnulib works!

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-32
2008-01-09 16:18:51 +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 56a8cfb3cf merge from GNU sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-64
   fix for freebsd sed

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-65
   document that sed -i breaks links

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-66
   Fix compilation on non-GCC compilers, update po files

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-28
2008-01-09 16:14:05 +01:00
Paolo Bonzini 9acbf498e4 merge with sed--stable--4.1
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-60
   fix `turn filenames into lowercase' example

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-61
   add install_sh definition to intl/po

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-26
2008-01-09 16:14:04 +01:00
Paolo Bonzini c51e083c7b rebuild sed.1
git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-25
2008-01-09 16:14:03 +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 ad6154c54d more updates to the FSF address
git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-22
2008-01-09 16:14:02 +01:00
Paolo Bonzini 2dcb1996e6 update FSF address
git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-21
2008-01-09 16:14:02 +01:00
Paolo Bonzini a1f54d8aa8 bump version number
git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-18
2008-01-09 16:14:01 +01:00
Paolo Bonzini bfb9f502b4 merge with sed--stable--4.1
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-39
   make --enable-html enable building .html files, not just installing

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-40
   add Ulrich Drepper to the THANKS file

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-41
   include config.h from within obstack.h

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-17
2008-01-09 16:14:00 +01:00
Paolo Bonzini 35ae01e7b3 sync with sed 4.1.4
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-35
   prepare for 4.1.4 release

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-37
   finishing touches :-) for 4.1.4

Other patch logs that were added are for regex matcher patches, that do
not apply to ssed:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-24
   fix off by one error in check_dst_limits_calc_pos_1

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-25
   simplify handling of subexpressions

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-26
   do not make single-byte searches go through slow MBCS paths

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-27
   Fix bugs in the accept_mb optimization.

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-28
   speed up parentheses

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-29
   separate parsing and creation of the NFA.  Avoid recursion on the parse tree.

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-30
   speed up transit_state_mb

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-34
   compute inveclosure only if actually needed.

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-36
   fix meaning of \B

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-38
   finally resync with glibc

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-16
2008-01-09 16:14:00 +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 d48b80273f commit autogenerated sed.texi.
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-32
   commit autogenerated sed.texi.

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-14
2008-01-09 16:13:52 +01:00
Paolo Bonzini 91cadc0e8c include GNU sed documentation about localization issues
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-31
   warn against localization issues

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-13
2008-01-09 16:13:52 +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 8f1e0aa765 merge from sed--stable--4.1
Patches applied:

 * bonzini@gnu.org--2004/sed--stable--4.1--patch-6
   fix builds with included gettext

 * bonzini@gnu.org--2004/sed--stable--4.1--patch-7
   fix out of srcdir build

These patches did not apply to ssed:

 * bonzini@gnu.org--2004/sed--stable--4.1--patch-1
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-2
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-3
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-4
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-5
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-8
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-9
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-10
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-11
 * bonzini@gnu.org--2004/sed--stable--4.1--patch-12

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-7
2008-01-09 16:13:50 +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