diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-23 22:20:53 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-23 22:20:53 +0300 |
commit | 09149c00e701d265efb08cec1040841aa40d6fcf (patch) | |
tree | abfa45c0ab95f3969c7edd3b9493972535773fbe /doc/gawktexi.in | |
parent | 84f33c8b74c45e977ea05855f64545140dc6c2de (diff) | |
download | egawk-09149c00e701d265efb08cec1040841aa40d6fcf.tar.gz egawk-09149c00e701d265efb08cec1040841aa40d6fcf.tar.bz2 egawk-09149c00e701d265efb08cec1040841aa40d6fcf.zip |
Fix --source to be like 3.1.x and improve the doc.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index bbf7f5d6..d5707932 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -3872,6 +3872,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 |