summaryrefslogtreecommitdiff
path: root/NEWS
Commit message (Collapse)AuthorAgeFilesLines
* maint: add cfg.mk, derived from grep'sJim Meyering2014-11-301-1/+1
| | | | | | * cfg.mk (local-checks-to-skip): Exempt many failing tests. (old_NEWS_hash): Define. * NEWS: Tweak wording to avoid semblance of doubled word: in in-place.
* fix "y" to work with NUL in the RHSJim Meyering2014-09-061-1/+17
| | | | | | | | | | | | | * sed/execute.c (do_list) [case 'y']: Handle NUL bytes in the RHS of a y/LHS/RHS/ transliteration. * testsuite/y-zero.good: New test-related files. * testsuite/y-zero.inp: * testsuite/y-zero.sed: * testsuite/Makefile.am (SEDTESTS): Add y-zero here. * testsuite/Makefile.tests: And here. * NEWS (Bug fixes): Describe it. The bug was reported by table@inventati.org, with the execute.c change mostly by Paolo Bonzini.
* fix \x26 on RHS of s commandPaolo Bonzini2012-04-131-0/+4
| | | | | | | | | | | 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 == '&'.
* add -z/--null-dataPaolo Bonzini2012-02-051-0/+2
| | | | | | | | | | | | | | | 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.
* fix NEWS entry for the previous change (231 -> 2^31)Paolo Bonzini2011-07-251-1/+1
|
* avoid silent data loss when an input line is 231 bytes or longerJim Meyering2011-07-111-0/+2
| | | | | | | | | | | | If one line in a file has length (including newline) of 231, then applying sed -i to that file truncates it to size 0. I first noticed it like this: Create a file with line of length 231-1 $ perl -le 'print "v"x(2**31-1)' > k Then prepend a byte to that line: $ sed -i 's/^/v/' k Surprise! The file is empty. * sed/utils.c (ck_getline): Declare "result" to be of type ssize_t, rather than int, to match the return type of getline.
* use "w" or "wb" modes for sed -i, s///w, `w' and `W' depending on --binaryPaolo Bonzini2010-08-171-1/+2
| | | | | | | | | | | | | 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.
* Let --posix turn off nonportable scripts ending in backslash.Ralf Wildenhues2010-08-171-0/+3
| | | | | | | | * 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.
* use mkostemp(template, 0) instead of mkstemp to work around Cygwin oddityPaolo Bonzini2010-07-161-0/+2
| | | | | | | | | | | 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.
* add F command.Ralf Wildenhues2009-12-271-0/+2
| | | | | | | | | | | | 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.
* handle incomplete sequences as if they were invalidPaolo Bonzini2009-10-151-1/+3
| | | | | | | | 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.
* make -u unbuffer input files as per the documentationPádraig Brady2009-07-221-0/+5
| | | | | | * sed/execute.c: call setvbuf() to turn off input buffering * sed/sed.c: rename unbuffered_output to more accurate unbuffered * sed/sed.h: ditto
* bump version number to 4.2.1v4.2.1Paolo Bonzini2009-06-271-1/+1
| | | | | | | | | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Bump version. * NEWS: Bump version. * gnulib: Update. * doc/sed.1: Regenerate.
* preserve security contexts too on sed -iPaolo Bonzini2009-06-261-0/+2
| | | | | | | 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.
* security fixes for partially created filesPaolo Bonzini2009-06-261-0/+3
| | | | | | | 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.
* fix bug with s/[[[]//Paolo Bonzini2009-05-111-0/+5
| | | | | | | | | | | | | | | 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>
* bump version numberv4.24.2Paolo Bonzini2009-05-111-35/+15
|
* bump versionv4.1fPaolo Bonzini2009-04-281-1/+1
|
* fix "x", "g", "G" commands with "sed -i" to match BSD sedPaolo Bonzini2009-01-051-0/+2
| | | | | | | 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.
* fix configure.ac version numberv4.1ePaolo Bonzini2009-01-041-7/+4
|
* Let --posix turn off more GNU extensions.Ralf Wildenhues2008-12-311-0/+5
| | | | | | | | | | | | | 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.
* switch to external gettextJim Meyering2008-10-031-0/+3
| | | | | | | | | | 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.
* add `z' extensionPaolo Bonzini2008-09-291-4/+12
| | | | | | | | | | | | | | | 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.
* fix cross-device links with --follow-symlinksPaolo Bonzini2008-01-091-0/+6
| | | | | | | | | 2007-08-14 Paolo Bonzini <bonzini@gnu.org> * sed/execute.c (open_next_file): Follow symlink here... (closedown): ... not here. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-96
* switch to GPLv3v4.1dPaolo Bonzini2008-01-091-0/+9
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
* bump version to 4.1c and fix some warningsv4.1cPaolo Bonzini2008-01-091-0/+5
| | | | | | | | | 2006-12-29 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c: Fix warnings. * sed/execute.c: Fix warnings. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-91
* --posix disables all extensions to regular expressionsPaolo Bonzini2008-01-091-0/+12
| | | | | | | | 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
* finish gnulib conversion -- upgrade bootstrap and a few detailsv4.1aPaolo Bonzini2008-01-091-1/+4
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-79
* gnulibify and add ACL supportPaolo Bonzini2008-01-091-0/+1
| | | | | | | | | | 2006-09-24 Paolo Bonzini <bonzini@gnu.org> * sed/execute.c: Support ACLs. * lib/utils.c: Move... * sed/utils.c: ... here, and remove xmalloc. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-74
* accept NUL for `.'Paolo Bonzini2008-01-091-0/+7
| | | | | | | | | 2006-08-21 Paolo Bonzini <bonzini@gnu.org> * sed/regexp.c: Accept NUL bytes for `.'. Accept 'a\(b' in POSIXLY_CORRECT/POSIXLY_BASIC posixicity. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-73
* fix y/[/X/ and add more testcases for the y commandPaolo Bonzini2008-01-091-0/+2
| | | | | | | | 2006-02-03 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (compile_program) <case 'y'>: Pass false to match_slash. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-62
* add cache variable for -lcP testPaolo Bonzini2008-01-091-0/+3
| | | | | | | | | 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
* fix a/r/R commands when q is encounteredPaolo Bonzini2008-01-091-0/+5
| | | | | | | | | | | | | 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
* fix meaning of \BPaolo Bonzini2008-01-091-0/+2
| | | | | | | | | | | | | 2005-01-26 Paolo Bonzini <bonzini@gnu.org> * posix/regcomp.c (peek_token): Fix ctx_type for \B. (parse_expression): Lower token->opr.ctx_type == NOT_WORD_DELIM. * posix/regex_internal.h (re_context_type): Add NOT_WORD_DELIM and OUTSIDE_WORD. * posix/PCRE.tests: Adjust \B tests to check if it matches outside a word. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-36
* prepare for 4.1.4 releasePaolo Bonzini2008-01-091-0/+7
| | | | | | | | 2005-01-25 Paolo Bonzini <bonzini@gnu.org> * sed/regexp.c: Fix building on GCC 2.95 and earlier. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-35
* do not use leftmost-longest matching for addresses.Paolo Bonzini2008-01-091-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-26 Paolo Bonzini <bonzini@gnu.org> Do not use leftmost-longest matching for addresses. * NEWS: Add a note about this. * testsuite/recall2.good, testsuite/recall2.inp, testsuite/recall2.sed: New test. * testsuite/Makefile.am, testsuite/Makefile.tests: Add the recall2 test. * sed/sed.h (struct regex): New. (struct addr, struct subst, compile_regex, match_regex, release_regex): Use it instead of regex_t. * sed/compile.c (compile_program): Update for new meaning of the third parameter of compile_regex. * sed/execute.c (do_subst): Pass less conservative value to the regsize parameter of match_regex. * sed/regexp.c (compile_regex_1): New, extracted out of compile_regex. The third parameter, needed_sub, now includes \0 (so 10 means that \0 .. \9 are needed). Pass RE_NO_SUB if needed_sub is zero. (compile_regex): Accept a struct regex instead of a regex_t. Save the regular expression's text. (match_regex): Accept a struct regex instead of a regex_t. Recompile the pattern if it was compiled with RE_NO_SUB. (release_regex): Accept a struct regex instead of a regex_t. * doc/Makefile.am: Generate sed.texi correctly when building outside srcdir. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-33
* always enable regex tests when included regex is usedPaolo Bonzini2008-01-091-0/+3
| | | | | | | | | | | | | | | | | 2004-11-03 Paolo Bonzini <bonzini@gnu * bug-regex11.c: Improve portability. * bug-regex12.c: Improve portability. * bug-regex13.c: Improve portability. * bug-regex14.c: Improve portability. * bug-regex21.c: Improve portability. * bug-regex9.c: Improve portability. * tst-boost.c: Improve portability. * tst-pcre.c: Improve portability. * tst-regex.c: Improve portability. * tst-rxspencer.c: Improve portability. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-9
* initial importPaolo Bonzini2004-10-201-0/+426
(automatically generated log message) git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0