[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Gawk debug command 'eval'
From: |
Lothar Langer |
Subject: |
[bug-gawk] Gawk debug command 'eval' |
Date: |
Thu, 14 Feb 2019 17:26:44 +0100 |
Hi,
i didn't read anything in the 'Gawk User's Guide' that it is not
possible to evaluate user defined functions with the command 'eval' in
the debugger.
Example:
function isnumeric(x) {
return (length(x) && x == x+0)
}
...
gawk> eval "print isnumeric(\"hello\")"
error: `return' not allowed in current context; statement ignored
... but ...
gawk> eval "print length(\"hello\")"
5
... which is expected ...
My version is:
GNU Awk 4.2.60, API: 2.0
--
Aharon (Arnold) Robbins arnold AT skeeve DOT com
- [bug-gawk] Gawk debug command 'eval',
Lothar Langer <=