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:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user