Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A=10; B=20; bash -c "A=30; B=40; foo() { echo $A \$B; }; declare -f foo"
- ------------------------------------
- Output:
- foo ()
- {
- echo 10 $B
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement