Skip to content

Instantly share code, notes, and snippets.

@jorgenschaefer
Created March 16, 2013 17:35
Show Gist options
  • Select an option

  • Save jorgenschaefer/5177422 to your computer and use it in GitHub Desktop.

Select an option

Save jorgenschaefer/5177422 to your computer and use it in GitHub Desktop.
<0>orion:~$ cat foo.sh
#!/home/forcer/bar.sh
echo "FOO=$FOO"
<0>orion:~$ cat bar.sh
#!/usr/bin/env bash
FOO="yep"
source "$1"
<0>orion:~$ ./foo.sh
FOO=yep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment