Skip to content

Instantly share code, notes, and snippets.

@holybit
Created October 11, 2012 14:30
Show Gist options
  • Save holybit/3872766 to your computer and use it in GitHub Desktop.
Save holybit/3872766 to your computer and use it in GitHub Desktop.
why is the value of FOO : and not foo2:bar1?
$ cat /tmp/try.txt
export FOO=foo1
export BAR=bar1
export FOO=foo2
export FOO=${FOO}:${BAR}
$ eval $(cat /tmp/try.txt)
$ echo $FOO
:
$ echo $BAR
bar1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment