Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. A=10; B=20; bash -c "A=30; B=40; foo() { echo $A \$B; }; declare -f foo"
  2.  
  3. ------------------------------------
  4. Output:
  5. foo ()
  6. {
  7. echo 10 $B
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement