Guest User

Untitled

a guest
Nov 27th, 2016
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [00:37:34][pamaury@hafnium:/home/pamaury/Bureau/test]$ cat test2.sh
  2. print_var() {
  3. echo "var: $var"
  4. }
  5. var=bla print_var
  6. print_var
  7. [00:37:38][pamaury@hafnium:/home/pamaury/Bureau/test]$ bash test2.sh
  8. var: bla
  9. var:
  10. [00:37:39][pamaury@hafnium:/home/pamaury/Bureau/test]$ sh test2.sh
  11. var: bla
  12. var: bla
  13. [00:37:41][pamaury@hafnium:/home/pamaury/Bureau/test]$
RAW Paste Data