doc: clarify sed buffer limit

* doc/autoconf.texi (Limitations of Usual Tools):
That 4000-byte limit applies to output and internal buffers, too.
This commit is contained in:
Paul Eggert 2012-01-05 11:00:45 -08:00
parent b69f4c2834
commit 3b4b3ee585
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-01-05 Paul Eggert <eggert@cs.ucla.edu>
doc: clarify sed buffer limit
* doc/autoconf.texi (Limitations of Usual Tools):
That 4000-byte limit applies to output and internal buffers, too.
2012-01-03 Paul Eggert <eggert@cs.ucla.edu> 2012-01-03 Paul Eggert <eggert@cs.ucla.edu>
maint: update copyright year maint: update copyright year

View File

@ -19256,8 +19256,9 @@ $ @kbd{echo a | sed 's/x/x/;;s/x/x/'}
sed: 1: "s/x/x/;;s/x/x/": invalid command code ; sed: 1: "s/x/x/;;s/x/x/": invalid command code ;
@end example @end example
Input should not have unreasonably long lines, since some @command{sed} Some @command{sed} implementations have a buffer limited to 4000 bytes,
implementations have an input buffer limited to 4000 bytes. Likewise, and this limits the size of input lines, output lines, and internal
buffers that can be processed portably. Likewise,
not all @command{sed} implementations can handle embedded @code{NUL} or not all @command{sed} implementations can handle embedded @code{NUL} or
a missing trailing newline. a missing trailing newline.