aboutsummaryrefslogtreecommitdiffstats
path: root/test/gsubind.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/gsubind.awk')
-rw-r--r--test/gsubind.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/gsubind.awk b/test/gsubind.awk
new file mode 100644
index 00000000..fce0d818
--- /dev/null
+++ b/test/gsubind.awk
@@ -0,0 +1,9 @@
+BEGIN {
+ f = "foo"
+ p = @/o/
+ gsub(p, "q", f)
+ print f
+ fun = "gsub"
+ @fun(p, "q", f)
+ print f
+}