summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* fixup: add the properly-named new test filesJim Meyering2014-09-062-1/+5
| | | | | * testsuite/Makefile.am (EXTRA_DIST): Add y-zero.*, not y-NUL.* here.
* maint: correct failing "version" testJim Meyering2014-09-063-3/+10
| | | | | | * configure.ac (COPYRIGHT_YEAR): Update to 2014, so the "version" test passes once again. * doc/sed.1: Also commit this auto-generated-yet-VC'd file.
* fix "y" to work with NUL in the RHSJim Meyering2014-09-068-4/+38
| | | | | | | | | | | | | * 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.
* gnulib submodule updated.Jose E. Marchesi2014-07-242-0/+4
| | | | | | 2014-07-24 Jose E. Marchesi <jemarch@gnu.org> * gnulib: Update.
* Avoid a little potential misunderstanding in the Regular Expressions section ↵Jose E. Marchesi2014-03-262-5/+10
| | | | | | | | | of the manual. 2014-03-26 Jose E. Marchesi <jemarch@gnu.org> * doc/sed.texi (Regular Expressions): avoid a potential misunderstanding in the description of the \| operator.
* Modify documentation to note sed "-E" option, now in POSIX, for EREs.David A. Wheeler2013-10-176-14/+49
| | | | | | | | | | | | | 2013-10-16 David A. Wheeler <dwheeler@dwheeler.com> * doc/sed-in.texi: Document "-E" option to use EREs. GNU sed already supported "-E" as an undocumented synonym for "-r", but "-E" is now in POSIX. See: http://austingroupbugs.net/view.php?id=528. * doc/sed.1: Likewise. * doc/sed.texi: Likewise. * doc/sed.x: Likewise. * sed/sed.c: Likewise.
* Set PATH_MAX to some constant in case it is not defined in systemJose E. Marchesi2013-10-064-5/+20
| | | | | | | | | | | | headers. 2013-10-06 Jose E. Marchesi <jemarch@gnu.org> * basicdefs.h (PATH_MAX): Defined to some constant in case it is not defined by system headers. * sed/utils.c: Do not include pathmax.h anymore. * bootstrap.conf (gnulib_modules): Do not use the gnulib module pathmax.
* Typo fixed in the manual.Jose E. Marchesi2013-09-302-1/+7
| | | | | | | | 2013-09-30 Jose E. Marchesi <jemarch@gnu.org> * doc/sed.texi (Regular Expressions): Typo: implicity numbered -> implicitly numbered. Reported by Arthur Budco.
* add an example on using | in extended regexps.Jose E. Marchesi2013-07-123-0/+13
| | | | | | | 2013-07-12 Jose E. Marchesi <jemarch@gnu.org> * doc/sed-in.texi (Extended regexps): Add an example on using | in extended regular expressions. Suggested by Nils Barth.
* gnulib update and copyright year updated.Jose E. Marchesi2013-02-024-3/+8
| | | | | | | 2013-02-02 Jose E. Marchesi <jemarch@gnu.org> * gnulib: Update. * configure.ac (COPYRIGHT_YEAR): Updated to 2013.
* testsuite: make test logs more verboseStefano Lattarini2013-01-012-13/+9
| | | | | | | | | | | | The Automake-provided parallel testsuite harness take care of redirection the stdout and stderr of the run test cases to a corresponding log file, so we no longer have to worry about avoiding to pollute the "make test" output. * testsuite/runtest: Adjust and simplify. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* tests: enable Automake parallel testsuite harnessStefano Lattarini2013-01-013-3/+21
| | | | | | | | | | | | | | | | | It is better than the older test driver. It is also the default now, starting from Automake 1.13; so having it enabled unconditionally will allow GNU sed to be seamlessly bootstrapped by Automake 1.13. * configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option. Also require Automake 1.11.1, since that is the minimal version to have a sane 'parallel-tests' support. (AC_PREREQ): Bump requirement to 2.62, since that is the minimal version required by Automake 1.11.1. * testsuite/Makefile.am (TESTS_ENVIRONMENT): Remove the invocation for the test runner "$(srcdir)/runtest"; it's correct place is ... (LOG_COMPILER): ... here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* build: avoid bootstrap failureStefano Lattarini2013-01-012-1/+6
| | | | | | | | | | | | | | | | Without this change, trying to bootstrap GNU sed from a freshly-cloned Git checkout aborts with an error like this: ./bootstrap: aclocal --force -I m4 ... ./bootstrap: autoconf --force ... configure.ac:20: error: possibly undefined macro: gl_DISABLE_THREADS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. * bootstrap.conf (gnulib_modules): Add 'threadlib'. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* add missing files to repositoryPaolo Bonzini2013-01-013-0/+3
|
* bump version number, set copyright yearv4.2.2Paolo Bonzini2012-12-224-2/+14
| | | | | | | 2012-12-21 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Bump version number. Replace COPYRIGHT_YEAR. * Makefile.am (dist-hook): Revert 2010-08-10 change.
* Comply more to gnulib usage standardsPaolo Bonzini2012-12-225-25/+9
| | | | | | | | | 2012-12-21 Paolo Bonzini <bonzini@gnu.org> * autoboot: Rename to bootstrap. * autoboot.conf: Rename to bootstrap.conf. * README.boot: Remove. * Makefile.am: Remove README.boot, add bootstrap and bootstrap.conf.
* Update to latest gnulib.Paolo Bonzini2012-12-225-5/+22
| | | | | | | 2012-12-21 Paolo Bonzini <bonzini@gnu.org> * gnulib: Update. * testsuite/version.gin: Regenerate.
* Regenerate filesPaolo Bonzini2012-12-224-118/+130
| | | | | | | | 2012-12-21 Paolo Bonzini <bonzini@gnu.org> * doc/sed.texi: Regenerate. * doc/sed.1: Regenerate. * po/sed.pot: Regenerate.
* document difference between "e" and "r" commandsPaolo Bonzini2012-07-252-3/+12
| | | | | | | 2012-07-25 Paolo Bonzini <bonzini@gnu.org> * doc/sed-in.texi: Document difference between "e" and "r" commands.
* Remove bootstrap.sh from Makefile.amJim Hill2012-04-302-6/+6
| | | | | * Makefile.am (noinst_DATA, dist-hook): build failed after git clean -dfx finish bootstrap.sh removal.
* fix \x26 on RHS of s commandPaolo Bonzini2012-04-135-22/+41
| | | | | | | | | | | 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 == '&'.
* regenerate testsuite/version.ginPaolo Bonzini2012-03-162-1/+7
| | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * testsuite/version.gin: Regenerate.
* switch to the wonderful world of function prototypesPaolo Bonzini2012-03-169-139/+128
| | | | | | | | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * basicdefs.h (P_): Remove. * sed/compile.c: Adjust. * sed/execute.c: Likewise. * sed/fmt.c: Likewise. * sed/sed.c: Likewise. * sed/sed.h: Likewise. * sed/utils.c: Likewise. * sed/utils.h: Likewise.
* remove ck_freePaolo Bonzini2012-03-167-33/+31
| | | | | | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * basicdefs.h (FREE): Remove. * sed/compile.c: Adjust. * sed/execute.c: Adjust. * sed/regexp.c: Adjust. * sed/utils.c: Adjust, remove ck_free. * sed/utils.h: Adjust, remove ck_free.
* rip out old macrosPaolo Bonzini2012-03-167-89/+65
| | | | | | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * basicdefs.h (CAST, VCAST, VOID, MEMCPY, MEMMOVE): Rip out. * sed/compile.c: Adjust. * sed/execute.c: Adjust. * sed/regexp.c: Adjust. * sed/utils.c: Adjust. * sed/utils.h: Adjust.
* unconditionally compile for MBCSPaolo Bonzini2012-03-164-73/+6
| | | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * sed/execute.c: Unconditionally compile for MBCS. * sed/mbcs.c: Unconditionally compile for MBCS. * sed/sed.h: Unconditionally compile for MBCS.
* clean up header inclusionsPaolo Bonzini2012-03-168-147/+30
| | | | | | | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * basicdefs.h: Enjoy gnulib's headers. * sed/compile.c: Likewise. * sed/execute.c: Likewise. * sed/regexp.c: Likewise. * sed/sed.c: Likewise. * sed/sed.h: Likewise. * sed/utils.c: Likewise.
* remove bootstrap scriptPaolo Bonzini2012-03-168-348/+12
| | | | | | | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * bootstrap.sh.in: Remove. * bootstrap.sh: Remove. * configure.ac: Do not create bootstrap.sh. * basicdefs.h [BOOTSTRAP]: Remove guards. * sed/execute.c [BOOTSTRAP]: Remove guards. * sed/sed.c [BOOTSTRAP]: Remove guards. * sed/sed.h [BOOTSTRAP]: Remove guards.
* update gnulib to latestPaolo Bonzini2012-03-165-0/+28
| | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * gnulib: Update.
* sed(1): document address behavior across input filesMike Frysinger2012-03-163-4/+15
| | | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * doc/sed.x: Document address behavior across input files. * doc/sed.1: Regenerate.
* ignore compiled object filesMike Frysinger2012-03-161-0/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* do not open input files with "rt" mode, do not assume "rt" is supportedPaolo Bonzini2012-02-134-3/+39
| | | | | | | | 2012-02-13 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Test whether fopen("foo", "rt") works. * sed/compile.c: Do not open scripts with "rt" mode if it doesn't. * sed/sed.c: Never open input files with "rt" mode.
* add -z/--null-dataPaolo Bonzini2012-02-0511-21/+77
| | | | | | | | | | | | | | | 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.
* document that . does not match newline in multi-line modePaolo Bonzini2011-11-233-24/+53
| | | | | | | 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.
* update .gitignore filesPaolo Bonzini2011-08-292-0/+12
|
* fix help text for -iPaolo Bonzini2011-08-292-4/+9
| | | | | | | 2011-08-29 Paolo Bonzini <bonzini@gnu.org> * sed/sed.c (usage): Fix documentation for -i. Reported by Dennis Bartlett.
* 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-113-2/+17
| | | | | | | | | | | | 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.
* avoid reopening stdinPádraig Brady2011-07-044-0/+9
| | | | | | | | | | | This adjusts the change made in 3a8e165a, to not reopen stdin on platforms where there is no separate "binary mode". That added some overhead and also precludes the use of tools like `stdbuf -i...`. * execute.c (open_next_file): Only reopen stdin on windos.
* document corner case of \l and \u, and simplify the code handling itPaolo Bonzini2011-05-274-7/+65
| | | | | | | | | | 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.
* fix incorrect comments in the "Increment a number" example.Paolo Bonzini2011-05-273-8/+10
| | | | | | | | 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.
* clang analyzer cleanupsPaolo Bonzini2011-03-114-12/+21
| | | | | | | | 2011-03-11 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (normalize_text): Clang analyzer cleanup. * sed/execute.c (append_replacement, do_subst): Same. * sed/utils.c (ck_getline): Same.
* order command alphabetically in man pageJari Aalto2010-12-135-46/+56
| | | | | | 2010-11-13 Jari Aalto <jari.aalto@cante.net> * doc/sed.x: Order commands alphabetically.
* small fixes to "rename files" examplePaolo Bonzini2010-12-102-6/+7
| | | | | | | 2010-11-10 Paolo Bonzini <bonzini@gnu.org> * doc/sed-in.texi: Fix double negation in comment, escape file names.
* avoid compiler warnings regarding ctype functionsEric Blake2010-11-031-0/+3
| | | | | * basicdefs.h (ISDIGIT): Avoid compiler warning on cygwin. * sed/compile.c (normalize_text): Avoid undefined behavior.
* avoid compiler warningEric Blake2010-11-031-0/+4
| | | | * sed/sed.c (includes): Supply missing header.
* avoid compiler warningEric Blake2010-11-034-5/+14
| | | | * sed/sed.c (includes): Supply missing header.
* downgrade minimum requested version of gettext to 0.17.Paolo Bonzini2010-11-013-2/+9
| | | | | | | | | 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.
* Commit regenerated doc/sed.texiPaolo Bonzini2010-11-012-4/+7
|
* update .gitignore filesPaolo Bonzini2010-10-312-0/+4
|