Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/usr/local/bin/emacs --script
  2. (princ "hello worldn")
  3.  
  4. $ ./hello.el
  5. ./hello.el: line 2: princ: command not found
  6.  
  7. #!/usr/local/bin/emacs --script
  8. foo=bash?
  9. echo $foo
  10. ls -l | sort | tail -1
  11.  
  12. $ ./hello.el
  13. bash?
  14. total 7984
  15.  
  16. #!/usr/bin/emacs --script
  17. (princ "hello worldn")
  18.  
  19. $ ls -l /usr/local/bin/emacs
  20. lrwxr-xr-x 1 aki staff 30 May 20 2013 /usr/local/bin/emacs -> ../Cellar/emacs/24.3/bin/emacs
  21. $ file /usr/local/Cellar/emacs/24.3/bin/emacs
  22. /usr/local/Cellar/emacs/24.3/bin/emacs: Bourne-Again shell script text executable
  23. $ cat /usr/local/Cellar/emacs/24.3/bin/emacs
  24. #!/bin/bash
  25. /usr/local/Cellar/emacs/24.3/Emacs.app/Contents/MacOS/Emacs -nw "$@"
  26.  
  27. #!/usr/local/Cellar/emacs/24.3/bin/emacs-24.3 --script
  28. (princ "hello worldn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement