aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-01-18 06:22:29 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-01-18 06:22:29 +0200
commit7c84c5f2d9e9a044e17b132628f675e0b199f640 (patch)
tree39b67feb78bfb189f80cdaf745fc61606fe1cf78 /doc/gawk.texi
parentf8445dd6243fd158794d6d26c0373b5cdf45f18a (diff)
parent07795bbecb05b4d2d52bd8808c713b0c5ece7b3b (diff)
downloadegawk-7c84c5f2d9e9a044e17b132628f675e0b199f640.tar.gz
egawk-7c84c5f2d9e9a044e17b132628f675e0b199f640.tar.bz2
egawk-7c84c5f2d9e9a044e17b132628f675e0b199f640.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi29
1 files changed, 25 insertions, 4 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 715ac862..a5b163df 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -5803,6 +5803,10 @@ they do not recognize collating symbols or equivalence classes.
@end quotation
@c maybe one day ...
+Inside a bracket expression, an opening bracket (@samp{[}) that does
+not start a character class, collating element or equivalence class is
+taken literally. This is also true of @samp{.} and @samp{*}.
+
@node Leftmost Longest
@section How Much Text Matches?
@@ -27804,10 +27808,27 @@ print @dots{} |& command # start two-way pipe
@end example
@noindent
-Using ptys usually avoids the buffer deadlock issues described earlier, at some
-loss in performance. If your system does not have ptys, or if all the
-system's ptys are in use, @command{gawk} automatically falls back to
-using regular pipes.
+If your system does not have ptys, or if all the system's ptys are in use,
+@command{gawk} automatically falls back to using regular pipes.
+
+Using ptys usually avoids the buffer deadlock issues described earlier,
+at some loss in performance. This is because the tty driver buffers
+and sends data line-by-line. On systems with the @command{stdbuf}
+(part of the @uref{http://www.gnu.org/software/coreutils/coreutils.html,
+GNU Coreutils package}), you can use that program instead of ptys.
+
+Note also that ptys are not fully transparent. Certain binary control
+codes, such @kbd{Ctrl-d} for end-of-file, are interpreted by the tty
+driver and not passed through.
+
+@quotation CAUTION
+Finally, coprocesses open up the possibility of @dfn{deadlock} between
+@command{gawk} and the program running in the coprocess. This can occur
+if you send ``too much'' data to the coprocess before reading any back;
+each process is blocked writing data with noone available to read what
+they've already written. There is no workaround for deadlock; careful
+programming and knowledge of the behavior of the coprocess are required.
+@end quotation
@node TCP/IP Networking
@section Using @command{gawk} for Network Programming