Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A=10; B=20; bash -c "A=30; B=40; foo() { echo $A \$B; }; declare -f foo"
------------------------------------
Output:
foo ()
{
echo 10 $B
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.