Bash-4.2 cleanup of leftover files
[platform/upstream/bash.git] / tests / type.right
index 18208d1..6dbce64 100644 (file)
@@ -61,3 +61,38 @@ bar ()
 { 
     echo $(<x1)
 }
+foo is a function
+foo () 
+{ 
+    echo;
+    cat  <<END
+bar
+END
+
+    cat  <<EOF
+qux
+EOF
+
+}
+
+bar
+qux
+
+bar
+qux
+foo is a function
+foo () 
+{ 
+    rm -f a b c;
+    for f in a b c;
+    do
+        cat  >> ${f} <<-EOF
+file
+EOF
+
+    done
+    grep . a b c
+}
+a:file
+b:file
+c:file