| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
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 == '&'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
* 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-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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-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.
|
|
|
|
|
|
| |
* 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-06-27 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Bump version.
* NEWS: Bump version.
* gnulib: Update.
* doc/sed.1: Regenerate.
|
|
|
|
|
|
|
| |
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 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-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-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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-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-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.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-79
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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-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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
(automatically generated log message)
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0
|