Skip to content

Commit

Permalink
Fix portability problem with #!/usr/bin/env (issue melpa#203)
Browse files Browse the repository at this point in the history
Passing the 'script' option to emacs doesn't work as expected
on Linux, since the shebang is evaluated as:
  #!/usr/bin/env "emacs --script"
  • Loading branch information
gvalkov committed Jul 17, 2012
1 parent c2ea978 commit f4d2a1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion buildpkg
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env emacs --script
#!/bin/sh
:;exec emacs --script "$0" "$@"

(add-to-list 'load-path (file-name-directory load-file-name))

Expand Down
3 changes: 2 additions & 1 deletion migrate
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env emacs --script
#!/bin/sh
:;exec emacs --script "$0" "$@"

(defun read-from-file (file-name)
"read one lisp expression from a file"
Expand Down
3 changes: 2 additions & 1 deletion missing.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env emacs --script
#!/bin/sh
:;exec emacs --script "$0" "$@"

(defun difference (left right)
"compare two lists"
Expand Down

0 comments on commit f4d2a1b

Please sign in to comment.