aboutsummaryrefslogtreecommitdiff
path: root/testdir/T.misc
diff options
context:
space:
mode:
authorozan yigit <ozan.yigit@gmail.com>2021-11-25 13:29:49 -0500
committerozan yigit <ozan.yigit@gmail.com>2021-11-25 13:29:49 -0500
commit01749f04cf1366ac50d998c4747acc89549c082f (patch)
treec9ad0898eabe5ba1f4ee126379f7d00338b01bb4 /testdir/T.misc
parentcfe6b6b99d841c0f46d090265e0aa882feee411f (diff)
downloadone-true-awk-01749f04cf1366ac50d998c4747acc89549c082f.tar.gz
Revert "resolve parsing of a slash character within a cclass "/[/]/" without escape"
This reverts commit d91c473c7c187079a886fcbc27fc7955da52a8fd.
Diffstat (limited to 'testdir/T.misc')
-rwxr-xr-xtestdir/T.misc4
1 files changed, 4 insertions, 0 deletions
diff --git a/testdir/T.misc b/testdir/T.misc
index f12d459..ad34ab8 100755
--- a/testdir/T.misc
+++ b/testdir/T.misc
@@ -164,6 +164,10 @@ $awk 'BEGIN { unireghf() }
function unireghf(hfeed) { hfeed[1] = 0 }'
if test -r core; then echo 1>&2 "BAD: T.misc unireghf dropped core"; fi
+echo x | $awk '/[/]/' 2>foo
+grep 'nonterminated character class' foo >/dev/null || error 'BAD: T.misc nonterminated fails'
+if test -r core; then echo 1>&2 "BAD: T.misc nonterminated dropped core"; fi
+
$awk '
function f() { return 12345 }
BEGIN { printf "<%s>\n", f() }