Skip to content

Instantly share code, notes, and snippets.

@akesterson
Created July 12, 2013 19:27
Show Gist options
  • Save akesterson/5987080 to your computer and use it in GitHub Desktop.
Save akesterson/5987080 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash4
declare -A thingy
function x
{
local doohicky
doohicky=$1
echo ${!doohicky[x]}
}
thingy[x]="lol"
x thingy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment