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-09-28 Paolo Bonzini <bonzini@gnu.org>
* 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-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-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-01-16 Jim Meyering <meyering@redhat.com>
* sed/compile.c (snarf_char_class): Reverse order of conjuncts
so that "delim" is not used uninitialized.
2007-02-05 Paolo Bonzini <bonzini@gnu.org>
* testsuite/bug-regex27.c, testsuite/bug-regex28.c: New, from
glibc (written by Jakub Jelinek).
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-93
2007-01-26 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (check_final_program): Don't set text if the
pending_text is initialized but empty.
* sed/execute.c (output_line): Don't print text if it is NULL.
* tests/Makefile.am (TESTS): Add insert.
* tests/Makefile.tests (insert): New.
* tests/insert.good, tests/insert.sed, tests/insert.inp: New
testcase from Jonas Koelker.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-92
2006-12-22 Bruno Haible <bruno@clisp.org>
* sed/utils.c: Include pathmax.
* sed/mbcs.c: Use local_charset.
* sed/execute.c: Copy with padding after the mbstate_t member.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-90
2006-12-15 Paolo Bonzini <bonzini@gnu.org>
* sed/regexp.c: Disable all extensions on --posix.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-84
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
Revert this part of the previous change:
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (get_openfile): Change second argument to char
and turn it into a string within the function. Adjust callers.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-72
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
Corinna Vinschen <vinschen@redhat.com>
* lib/getline.c (getline): Remove Windows special casing.
* lib/utils.c (register_open_file, ck_fdopen): New.
(ck_fopen, ck_mkstemp): Use register_open_file.
* lib/utils.h (ck_fdopen): New.
* sed/execute.c (open_next_file): Reopen stdin.
* sed/sed.h (read_mode): New.
* sed/sed.c (read_mode): New.
(main): Set it on --binary.
(usage): Document --binary.
* sed/compile.c (get_openfile): Change second argument to char
and turn it into a string within the function. Adjust callers.
* sed/execute.c (dump_append_queue, open_next_file): Use it
as mode for ck_fopen.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-71
2005-05-18 Maciej W. Rozycki <macro@linux-mips.org>
* configure.ac: Use a cache variable for the libcP test.
* configure: Regenerate.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-48
2005-04-11 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (process_files): Do not add a default
command-line in in-place editing mode.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-45
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.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-44