Advertisement
rockdrilla

fun

Jun 19th, 2017
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. load() { unset -f load
  2.   stop() {
  3.     echo stopped
  4.   }
  5.   start() {
  6.     echo started
  7.   }
  8. }
  9.  
  10. stop # lol nope, no such method
  11. load # ok
  12. stop # ok
  13. load # nope-nope-nope, no such method
  14. start # ok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement