diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-23 20:21:27 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-23 20:21:27 +0200 |
commit | 30f33344588322c1dd875a779906cb8fbfa4813e (patch) | |
tree | cc12ed47f50eab9f653954cd1e2cb3d2f90cf514 /doc/gawk.texi | |
parent | 09464314120c03b6870678108c10d99c58d4aa39 (diff) | |
download | egawk-30f33344588322c1dd875a779906cb8fbfa4813e.tar.gz egawk-30f33344588322c1dd875a779906cb8fbfa4813e.tar.bz2 egawk-30f33344588322c1dd875a779906cb8fbfa4813e.zip |
Several small fixes in the manual.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index 7f18649a..f3d3b390 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -12738,17 +12738,17 @@ For maximum portability, do not use the @samp{**=} operator. @end docbook @cindex dark corner @subentry regexp constants @subentry @code{/=} operator and -@cindex @code{/} (forward slash) @subentry @code{/=} operator @subentry vs. @code{/=@dots{}/} regexp constant -@cindex forward slash (@code{/}) @subentry @code{/=} operator @subentry vs. @code{/=@dots{}/} regexp constant +@cindex @code{/} (forward slash) @subentry @code{/=} operator @subentry vs.@: @code{/=@dots{}/} regexp constant +@cindex forward slash (@code{/}) @subentry @code{/=} operator @subentry vs.@: @code{/=@dots{}/} regexp constant @cindex regexp constants @subentry @code{/=@dots{}/} @subentry @code{/=} operator and @c derived from email from "Nelson H. F. Beebe" <beebe@math.utah.edu> @c Date: Mon, 1 Sep 1997 13:38:35 -0600 (MDT) -@cindex dark corner @subentry @code{/=} operator vs. @code{/=@dots{}/} regexp constant -@cindex ambiguity, syntactic: @code{/=} operator vs. @code{/=@dots{}/} regexp constant -@cindex syntactic ambiguity: @code{/=} operator vs. @code{/=@dots{}/} regexp constant -@cindex @code{/=} operator vs. @code{/=@dots{}/} regexp constant +@cindex dark corner @subentry @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant +@cindex ambiguity, syntactic: @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant +@cindex syntactic ambiguity: @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant +@cindex @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant There is a syntactic ambiguity between the @code{/=} assignment operator and regexp constants whose first character is an @samp{=}. @value{DARKCORNER} @@ -12784,17 +12784,17 @@ and @command{mawk} also do not. @cindex dark corner @subentry regexp constants @subentry @code{/=} operator and -@cindex @code{/} (forward slash) @subentry @code{/=} operator @subentry vs. @code{/=@dots{}/} regexp constant -@cindex forward slash (@code{/}) @subentry @code{/=} operator @subentry vs. @code{/=@dots{}/} regexp constant +@cindex @code{/} (forward slash) @subentry @code{/=} operator @subentry vs.@: @code{/=@dots{}/} regexp constant +@cindex forward slash (@code{/}) @subentry @code{/=} operator @subentry vs.@: @code{/=@dots{}/} regexp constant @cindex regexp constants @subentry @code{/=@dots{}/} @subentry @code{/=} operator and @c derived from email from "Nelson H. F. Beebe" <beebe@math.utah.edu> @c Date: Mon, 1 Sep 1997 13:38:35 -0600 (MDT) -@cindex dark corner @subentry @code{/=} operator vs. @code{/=@dots{}/} regexp constant -@cindex ambiguity, syntactic: @code{/=} operator vs. @code{/=@dots{}/} regexp constant -@cindex syntactic ambiguity: @code{/=} operator vs. @code{/=@dots{}/} regexp constant -@cindex @code{/=} operator vs. @code{/=@dots{}/} regexp constant +@cindex dark corner @subentry @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant +@cindex ambiguity, syntactic: @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant +@cindex syntactic ambiguity: @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant +@cindex @code{/=} operator vs.@: @code{/=@dots{}/} regexp constant There is a syntactic ambiguity between the @code{/=} assignment operator and regexp constants whose first character is an @samp{=}. @value{DARKCORNER} @@ -25596,7 +25596,7 @@ with @command{gawk}'s, a @option{--} is needed to tell @command{gawk} to stop looking for options. Next comes the code that handles the @command{egrep}-specific behavior. -@command{egrep} uses the first nonoption on the command line is used. +@command{egrep} uses the first nonoption on the command line if no pattern is supplied with @option{-e}. If the pattern is empty, that means no pattern was supplied, so it's necessary to print an error message and exit. @@ -30563,7 +30563,7 @@ constants; if you used an octal or hexadecimal value in your source code, it will appear that way in the output. @node Extension Philosophy -@section Builtin Features vs.@: Extensions +@section Builtin Features versus Extensions As this and subsequent @value{CHAPTER}s show, @command{gawk} has a large number of extensions over standard @command{awk} built-in to @@ -30571,7 +30571,7 @@ the program. These have developed over time. More recently, the focus has moved to using the extension mechanism (@pxref{Dynamic Extensions}) for adding features. This @value{SECTION} discusses the ``guiding philosophy'' behind what should be added to the interpreter as a built-in -feature vs.@: what should be done in extensions. +feature versus what should be done in extensions. There are several goals: @@ -30596,12 +30596,11 @@ Extend the core interpreter only if some feature is: @item Truly desirable. @item -Cannot be done via (2) or (3) above. +Cannot be done via library files or loadable extensions. @item Can be implemented without too much pain in the core. @end enumerate @end enumerate - Combining modules with @command{awk} files is a powerful technique. Some of the sample extensions demonstrate this. @@ -30651,8 +30650,8 @@ you tune them more easily. Sending the @code{USR1} signal while profiling cause You can also just ``pretty-print'' the program. @item -New features should be developed using the extension mechansim if possible, and added -to the core interpreter only as a last resort. +New features should be developed using the extension mechansim if possible; +they should be added to the core interpreter only as a last resort. @end itemize |