Jim Meyering 257d20967c avoid silent data loss when an input line is 231 bytes or longer
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.
2011-07-25 08:44:51 +02:00
2011-07-04 12:44:54 +02:00
2010-08-30 14:06:44 +02:00
2010-08-30 14:06:44 +02:00
2008-01-09 16:18:58 +01:00
2008-05-15 10:22:45 +02:00
2008-04-10 11:36:04 +02:00
2008-09-29 11:37:45 +02:00
2008-01-09 16:13:48 +01:00
2008-10-03 10:34:17 +02:00
2009-04-27 12:07:38 +02:00
2008-01-09 16:14:05 +01:00
2008-01-09 16:18:57 +01:00
2008-11-04 07:58:50 +01:00
2011-05-27 09:43:35 +02:00
2009-05-11 10:56:05 +02:00
2008-01-09 16:13:48 +01:00
2004-10-20 21:42:31 +00:00
2004-10-20 21:42:31 +00:00
2011-07-04 12:44:54 +02:00
2008-01-09 16:13:48 +01:00

This is a version of sed based on GNU sed.  It is not
a version of GNU sed, though.

There are several new features, including extended regular expression
syntax, and some bug fixes; see the NEWS file for a brief summary
and the ChangeLog for more detailed descriptions of changes.

See the file INSTALL for generic compilation and installation
instructions.

See the file BUGS for instructions about reporting bugs.

The file README.boot gives instructions for making a "bootstrap"
version of sed on systems which lack any pre-existing and working
version of sed.
S
Description
SED (stream editor) - неинтерактивный текстовый редактор командной строки
https://www.gnu.org/software/sed/
Readme GPL-3.0
3 MiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 43%
C 26.4%
Perl 16.5%
sed 7.3%
Makefile 5.2%
Other 1.6%