Skip to content

Commit

Permalink
add test cases for closed awk assign
Browse files Browse the repository at this point in the history
See #82 for background.
  • Loading branch information
abathur committed Jul 31, 2022
1 parent 01c7020 commit c5b689b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/parse_awk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 2 cases for issue 82
awk -F'\t' -vcategory="$1" '{ split($9, cs, "|");for (i in cs) if (cs[i] == category) { print; break; }; }'
awk -F'\t' -v category="$1" '{ split($9, cs, "|");for (i in cs) if (cs[i] == category) { print; break; }; }'

0 comments on commit c5b689b

Please sign in to comment.