Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # demonstrate variable scope 1.
- var1=blah
- var2=foo
- # Let's verify their current value
- echo $0 :: var1 : $var1, var2 : $var2
- export var1
- ./script2.sh
- # Let's see what they are now
- echo $0 :: var1 : $var1, var2 : $var2
Advertisement
Add Comment
Please, Sign In to add comment