aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-04-17 13:00:13 -0500
committerjohn haque <j.eh@mchsi.com>2012-04-17 13:00:13 -0500
commitb1062311a3caab9ec89c0f104bd9b4334174f23c (patch)
tree08a64713888026fb80fd80360343a51aebd8a593 /doc/gawk.texi
parente729adf120f279fd65578a410ca8d2d93a56f0f0 (diff)
parentf0345a29c71a3215adaa0e2fdfefc0c439ea6561 (diff)
downloadegawk-b1062311a3caab9ec89c0f104bd9b4334174f23c.tar.gz
egawk-b1062311a3caab9ec89c0f104bd9b4334174f23c.tar.bz2
egawk-b1062311a3caab9ec89c0f104bd9b4334174f23c.zip
Merge branch 'master' into gawk_mpfr.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi21
1 files changed, 17 insertions, 4 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 44243b36..8cd7e38e 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -20,7 +20,7 @@
@c applies to and all the info about who's publishing this edition
@c These apply across the board.
-@set UPDATE-MONTH November, 2011
+@set UPDATE-MONTH February, 2012
@set VERSION 4.0
@set PATCHLEVEL 1
@@ -145,7 +145,7 @@ Some comments on the layout for TeX.
@copying
Copyright @copyright{} 1989, 1991, 1992, 1993, 1996, 1997, 1998, 1999,
-2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009, 2010, 2011
+2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
@sp 2
@@ -1992,9 +1992,11 @@ line beginning with @samp{#!} lists the full @value{FN} of an interpreter
to run and an optional initial command-line argument to pass to that
interpreter. The operating system then runs the interpreter with the given
argument and the full argument list of the executed program. The first argument
-in the list is the full @value{FN} of the @command{awk} program. The rest of the
+in the list is the full @value{FN} of the @command{awk} program.
+The rest of the
argument list contains either options to @command{awk}, or @value{DF}s,
-or both.} as if you had
+or both. Note that on many systems @command{awk} may be found in
+@file{/usr/bin} instead of in @file{/bin}. Caveat Emptor.} as if you had
typed @samp{awk -f advice}:
@example
@@ -4544,6 +4546,10 @@ it is good practice to always escape them with a backslash. Then the
regexp constants are valid and work the way you want them to, using
any version of @command{awk}.@footnote{Use two backslashes if you're
using a string constant with a regexp operator or function.}
+
+Finally, when @samp{@{} and @samp{@}} appear in regexp constants
+in a way that cannot be interpreted as an interval expression
+(such as @code{/q@{a@}/}), then they stand for themselves.
@end table
@cindex precedence, regexp operators
@@ -14400,6 +14406,13 @@ Optional parameters are enclosed in square brackets@w{ ([ ]):}
@item atan2(@var{y}, @var{x})
@cindex @code{atan2()} function
Return the arctangent of @code{@var{y} / @var{x}} in radians.
+You can use @samp{pi = atan2(0, -1)} to retrieve the value of
+@tex
+$\pi$.
+@end tex
+@ifnottex
+pi.
+@end ifnottex
@item cos(@var{x})
@cindex @code{cos()} function