Message-Id: <201302061957.r16JvQtf014927@delorie.com> Date: Wed, 06 Feb 2013 19:45:40 +0100 From: Juan Manuel Guerrero To: djgpp-announce AT delorie DOT com Subject: ANNOUNCE: DJGPP port of GNU Sed 4.2.2 uploaded. Content-Type: text/plain; charset=ISO-8859-15; format=flowed Reply-To: djgpp AT delorie DOT com This is a port of GNU Sed 4.2.2 to MSDOS/DJGPP. sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. But it is sed's ability to filter text in a pipeline which particularly distinguishes it from other types of editors. Please, read carefully the NEWS file to see the user visible changes and read the info or html docs to become familiar with the program. For beginers the chapter: examples in the info doc may be instructive. The chapter: Other resources for learning about 'sed' contains pointers to usefull sed specific urls. DJGPP specific changes. ======================= - The input stream is switched to binary mode, if it does not come from the console, on platforms, like DOS/WIN95, that distinguish between text and binary files. This will allow to process files that contain embedded ^Z and lone ^M characters. - 8+3 valid file names will be generated for backup names of input file names if only SFN support is available. This concerns the '-i' option (in-place editing). - To compile the sources, unistd.h and the popen/pclose functions from the CVS repository are used. - No support for DJGPP's own regex function. They no longer do match the GNU regex ones. Here some work needs to be done before DJGPP's functions will again be a one-to-one substitute of GNU regex. - The tst-pcre, tst-boost and tst-rxspencer tests have been excluded from the testsuite because they require getline() to be compiled. DJGPP does not offer this function. All other 79 tests will successfully pass. As usual, all djgpp specific files (config.bat, diffs, readme files, etc.) are located in the /djgpp subdir. Here is an extract of the NEWS file showing the user visible changes from the last port (sed 4.2.1) to this one: Sed 4.2.2 * don't misbehave (truncate input) for lines of length 2^31 and longer * fix endless loop on incomplete multibyte sequences * -u also does unbuffered input, rather than unbuffered output only * New command `F' to print current input file name * sed -i, s///w, and the `w' and `W' commands also obey the --binary option (and create CR/LF-terminated files if the option is absent) * --posix fails for scripts (or fragments as passed to the -e option) that end in a backslash, as they are not portable. * New option -z (--null-data) to separate lines by ASCII NUL characters. * \x26 (and similar escaped sequences) produces a literal & in the replacement argument of the s/// command, rather than including the matched text. ---------------------------------------------------------------------------- The port has been compiled using stock djdev203 (patchlevel 2) and consists of the usual three packages that can be downloaded from ftp.delorie.com and mirrors as (timestamp 2013-02-05): Sed 4.2.2 binary, info and man format documentation: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/sed422b.zip Sed 4.2.2 dvi, html, pdf and ps format documentation: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/sed422d.zip Sed 4.2.2 source: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/sed422s.zip The binaries have been produced a second time using the stock version of djdev204 beta library. This package is available at ftp.delorie.com and mirrors as (timestamp 2013-02-05): Sed 4.2.2 binary, info and man format documentation: ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/sed422b.zip Send Sed specific bug reports to . Send suggestions and bug reports concerning the DJGPP port to comp.os.msdos.djgpp or . Enjoy. Guerrero, Juan Manuel