Skip to content

Instantly share code, notes, and snippets.

@rk295
Created October 10, 2014 12:25
Show Gist options
  • Save rk295/cd4244346a8c858c8318 to your computer and use it in GitHub Desktop.
Save rk295/cd4244346a8c858c8318 to your computer and use it in GitHub Desktop.
bash variable foo
$ export foo=bar
$ export "baz"$foo=wibble
$ echo $bazbar
wibble
@fidian
Copy link

fidian commented Jan 21, 2015

Sorry, also forgot about this:

foo=bar
bar=baz
echo $foo    # bar
echo ${!foo}    # baz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment