Skip to content

Instantly share code, notes, and snippets.

@nailor
Created November 12, 2011 11:57
Show Gist options
  • Save nailor/1360432 to your computer and use it in GitHub Desktop.
Save nailor/1360432 to your computer and use it in GitHub Desktop.
#!/bin/bash
( foo="bar"; echo "Within first shell (pid: $BASHPID): \$foo=$foo" )
( unset foo; echo "Within second shell (pid $BASHPID): \$foo=$foo" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment