diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-23 22:27:23 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-23 22:27:23 +0300 |
commit | 3a01684c2edafbcc64db1162f4b99ab6946004e2 (patch) | |
tree | d4f4762297ffa6a6d62141978844f8ae629efc8b /doc/gawk.texi | |
parent | cb012bf63a9cb943ff22441d6e10ab8d63c06971 (diff) | |
parent | 09149c00e701d265efb08cec1040841aa40d6fcf (diff) | |
download | egawk-3a01684c2edafbcc64db1162f4b99ab6946004e2.tar.gz egawk-3a01684c2edafbcc64db1162f4b99ab6946004e2.tar.bz2 egawk-3a01684c2edafbcc64db1162f4b99ab6946004e2.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index 6db3fb01..353a0c9d 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 |