aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-23 22:26:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-23 22:26:53 +0300
commita4ad1c093108ffa014aa59fe462bd3c063427216 (patch)
tree5a0b5e0137149071623bd87491195af6f8195e1d /doc/gawk.texi
parent631da910c29e4008f6e7094f60eb1e88a42e03b2 (diff)
parent09149c00e701d265efb08cec1040841aa40d6fcf (diff)
downloadegawk-a4ad1c093108ffa014aa59fe462bd3c063427216.tar.gz
egawk-a4ad1c093108ffa014aa59fe462bd3c063427216.tar.bz2
egawk-a4ad1c093108ffa014aa59fe462bd3c063427216.zip
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 6641705c..06add9d1 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -3961,6 +3961,24 @@ This is particularly useful
when you have library functions that you want to use from your command-line
programs (@pxref{AWKPATH Variable}).
+Note that @command{gawk} treats each string as if it ended with
+a newline character (even if it doesn't). This makes building
+the total program easier.
+
+@quotation CAUTION
+At the moment, there is no requirement that each @var{program-text}
+be a full syntactic unit. I.e., the following currently works:
+
+@example
+$ @kbd{gawk -e 'BEGIN @{ a = 5 ;' -e 'print a @}'}
+@print{} 5
+@end example
+
+@noindent
+However, this could change in the future, so it's not a
+good idea to rely upon this feature.
+@end quotation
+
@item @option{-E} @var{file}
@itemx @option{--exec} @var{file}
@cindex @option{-E} option