]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/vredir1.sub
Bash-4.2 distribution sources and documentation
[thirdparty/bash.git] / tests / vredir1.sub
diff --git a/tests/vredir1.sub b/tests/vredir1.sub
new file mode 100644 (file)
index 0000000..403734c
--- /dev/null
@@ -0,0 +1,17 @@
+bar()
+{
+exec {v}<<EOF
+line 1
+line 2
+line 3
+EOF
+echo $v
+}
+
+bar
+
+cat <&$v
+
+type bar
+
+exit 0