mirror of
git://git.sv.gnu.org/sed
synced 2026-11-21 01:43:22 +03:00
257d20967c123ab76a019872b0bfd4d753155f4b
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.
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.
Description
SED (stream editor) - неинтерактивный текстовый редактор командной строки
https://www.gnu.org/software/sed/
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%