awk: support "length" form of "length()". Closes 8371

function                                             old     new   delta
parse_expr                                           805     848     +43
tokenlist                                            447     448      +1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2015-10-02 02:41:39 +02:00
parent c919d561ad
commit 28b00ce6ff
2 changed files with 72 additions and 48 deletions

View File

@@ -281,6 +281,11 @@ testing "awk length(array)" \
"2\n" \
"" ""
testing "awk length()" \
"awk '{print length; print length(); print length(\"qwe\"); print length(99+9)}'" \
"3\n3\n3\n3\n" \
"" "qwe"
testing "awk -f and ARGC" \
"awk -f - input" \
"re\n2\n" \