daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest May 21st, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## As a normal user
  2.  
  3. ~% ruby -v
  4. ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
  5. ~% ruby -e "puts '`echo $PATH`'"
  6. /usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin
  7. ~% irb
  8. irb(main):002:0> ENV['PATH']
  9. => "/usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin"
  10. irb(main):003:0> `echo $PATH`
  11. => "/usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin\n"
  12. irb(main):004:0> exit
  13.  
  14. ## As a sudo'd shell
  15.  
  16. ~% sudo -s
  17. Password:
  18. ~# ruby -e "puts '`echo $PATH`'"
  19. /usr/bin:/bin:/usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin
  20. ~# irb
  21. irb(main):001:0> ENV['PATH']
  22. => "/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin"
  23. irb(main):002:0> `echo $PATH`
  24. => "/usr/bin:/bin\n"
  25. irb(main):003:0> exit
  26.  
  27. ## As a child of the sudo'd shell
  28.  
  29. ~# zsh
  30. ~# ruby -e "puts '`echo $PATH`'"
  31. /usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin
  32. ~# irb
  33. irb(main):001:0> ENV['PATH']
  34. => "/usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin"
  35. irb(main):002:0> `echo $PATH`
  36. => "/usr/local/bin:/usr/local/sbin:/Users/jay/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Applications/Utilities/diglloyd/disktester:/usr/local/git/bin:/opt/local/lib/postgresql83/bin\n"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top