Guest User

Untitled

a guest
Dec 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $ FOO=BAR
  2. $ env | grep FOO
  3. $ set | grep FOO
  4. FOO=BAR
  5.  
  6. $ export BAR=FOO
  7. $ env | grep FOO
  8. BAR=FOO
  9. $ set | grep FOO
  10. BAR=FOO
  11. FOO=BAR
  12.  
  13. $ FOO=BAR
  14. $ bash
  15. $$ echo $FOO # Note the empty line
  16.  
  17. $$ exit
  18. $ export FOO
  19. $ bash
  20. $$ echo $FOO
  21. BAR
  22. $$
  23.  
  24. $ export FOO
  25. $ FOO=BAR
  26. $ bash
  27. $$ echo $FOO
  28. BAR
  29. $$
Add Comment
Please, Sign In to add comment