Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/bin/emacs --script
- (princ "hello worldn")
- $ ./hello.el
- ./hello.el: line 2: princ: command not found
- #!/usr/local/bin/emacs --script
- foo=bash?
- echo $foo
- ls -l | sort | tail -1
- $ ./hello.el
- bash?
- total 7984
- #!/usr/bin/emacs --script
- (princ "hello worldn")
- $ ls -l /usr/local/bin/emacs
- lrwxr-xr-x 1 aki staff 30 May 20 2013 /usr/local/bin/emacs -> ../Cellar/emacs/24.3/bin/emacs
- $ file /usr/local/Cellar/emacs/24.3/bin/emacs
- /usr/local/Cellar/emacs/24.3/bin/emacs: Bourne-Again shell script text executable
- $ cat /usr/local/Cellar/emacs/24.3/bin/emacs
- #!/bin/bash
- /usr/local/Cellar/emacs/24.3/Emacs.app/Contents/MacOS/Emacs -nw "$@"
- #!/usr/local/Cellar/emacs/24.3/bin/emacs-24.3 --script
- (princ "hello worldn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement