fork(1) download
  1. #!/bin/bash
  2.  
  3. read -r -d '' VAR <<'EOF'
  4. abc'asdf"
  5. $(dont-execute-this)
  6. foo"bar"''
  7. EOF
  8.  
  9. echo $VAR
  10.  
Success #stdin #stdout 0s 4504KB
stdin
Standard input is empty
stdout
abc'asdf" $(dont-execute-this) foo"bar"''