diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-22 18:41:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-22 18:41:01 +0200 |
commit | ea664dde87d8e52df7d4003d988352a66562a945 (patch) | |
tree | 76de10da36e3d53809538f42fd1267ff90b44b83 /testsuite | |
parent | 440a509849391f2dc8ec720a136577ede3306fa8 (diff) | |
download | busybox-w32-ea664dde87d8e52df7d4003d988352a66562a945.tar.gz busybox-w32-ea664dde87d8e52df7d4003d988352a66562a945.tar.bz2 busybox-w32-ea664dde87d8e52df7d4003d988352a66562a945.zip |
awk: make -F STR interpret escape sequences. Closes 5126
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/awk.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index e67190757..d4c390d31 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -43,6 +43,11 @@ testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \ | |||
43 | "" \ | 43 | "" \ |
44 | "a--\na--b--\na--b--c--\na--b--c--d--" | 44 | "a--\na--b--\na--b--c--\na--b--c--d--" |
45 | 45 | ||
46 | testing "awk -F handles escapes" "awk -F'\\x21' '{print \$1}'" \ | ||
47 | "a\n" \ | ||
48 | "" \ | ||
49 | "a!b\n" | ||
50 | |||
46 | # '@(samp|code|file)\{' is an invalid extended regex (unmatched '{'), | 51 | # '@(samp|code|file)\{' is an invalid extended regex (unmatched '{'), |
47 | # but gawk 3.1.5 does not bail out on it. | 52 | # but gawk 3.1.5 does not bail out on it. |
48 | testing "awk gsub falls back to non-extended-regex" \ | 53 | testing "awk gsub falls back to non-extended-regex" \ |