[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] debugger: executing commands from stdin
From: |
Hermann Peifer |
Subject: |
[bug-gawk] debugger: executing commands from stdin |
Date: |
Thu, 30 Oct 2014 19:17:17 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Hi again,
Once I'm at it and as follow-up of Janis' recent posting in c.l.a:
Would it be an idea to mention in the doc that the debugger does not
only read commands from file, but also executes those provided from
stdin, see example below.
Hermann
$ echo 'BEGIN{str="Hello World!"; print str}' > test.awk
$
$ printf "w str\nr\nn" | awk -D -f test.awk
Watchpoint 1: str
Starting program:
Stopping in BEGIN ...
Watchpoint 1: str
Old value: untyped variable
New value: "Hello World!"
main() at `test.awk':1
1 BEGIN{str="Hello World!"; print str}
Hello World!
Program exited normally with exit value: 0
$
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-gawk] debugger: executing commands from stdin,
Hermann Peifer <=