fork(1) download
  1. #!/bin/bash
  2. #context1
  3. (
  4. context="context1"
  5. echo "I'm in $context"
  6. )
  7. #end of context1
  8.  
  9. (#context2
  10. echo "I'm in $context"
  11. context=context2
  12. echo "I'm in $context"
  13. )#end of context2
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
I'm in context1
I'm in 
I'm in context2