fork download
  1. #!/bin/bash
  2.  
  3.  
  4. foo=bar
  5.  
  6. # won't expand
  7. cat - <<'EOF'
  8. $foo
  9. EOF
  10.  
  11. # won't expand
  12. cat - <<"EOF"
  13. $foo
  14. EOF
  15.  
  16. # will expand
  17. cat - <<EOF
  18. $foo
  19. EOF
  20.  
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
$foo
$foo
bar