Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created June 9, 2017 04:05
Show Gist options
  • Save infinite-Joy/7f2e42a11924ed032adddee8584229e1 to your computer and use it in GitHub Desktop.
Save infinite-Joy/7f2e42a11924ed032adddee8584229e1 to your computer and use it in GitHub Desktop.
a=1
function nolocal {
echo $1
}
echo $(nolocal 2) # output 2
echo $a # output 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment