diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-04-21 14:00:10 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-04-21 14:44:37 +0300 |
commit | 7386af3ac9510a3f06d140548e6051db322e3ec2 (patch) | |
tree | aec669d9f2a9f70c7584e86467ca063ae7d780c3 /doc/gawk.texi | |
parent | 9abeda33e7ce111a266d5e3ec4dafe65c26d5cd0 (diff) | |
download | egawk-7386af3ac9510a3f06d140548e6051db322e3ec2.tar.gz egawk-7386af3ac9510a3f06d140548e6051db322e3ec2.tar.bz2 egawk-7386af3ac9510a3f06d140548e6051db322e3ec2.zip |
Doc on workaround for debugger -f limitation.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index 02481a7c..dd7389b8 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -31721,6 +31721,18 @@ executing, short programs. @item The @command{gawk} debugger only accepts source code supplied with the @option{-f} option. +If you have a shell script that provides an @command{awk} program as a command +line parameter, and you need to use the debugger, you can write the script +to a temporary file, and use that as the program, with the @option{-f} option. This +might look like this: + +@example +cat << \EOF > /tmp/script.$$ +@dots{} @ii{Your program here} +EOF +gawk -D -f /tmp/script.$$ +rm /tmp/script.$$ +@end example @end itemize @ignore @@ -45178,3 +45190,5 @@ Add a section explaining recursion from ground zero. Probably easiest to do it with factorial as the example. Explain that recursion needs a stopping condition. Thanks to Bill Duncan <bduncan@beachnet.org> for the suggestion. + +4/2109: Go through and check @print{} vs. @error{} in examples |