Permalink
Browse files

Fix portability problem with #!/usr/bin/env (issue #203)

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...
1 parent c2ea978 commit f4d2a1bf4d95c9521bdbde3e4f5971aada1224f6 @gvalkov gvalkov committed Jul 17, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −1 buildpkg
  2. +2 −1 migrate
  3. +2 −1 missing.el
View
@@ -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))
View
@@ -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"
View
@@ -1,4 +1,5 @@
-#!/usr/bin/env emacs --script
+#!/bin/sh
+:;exec emacs --script "$0" "$@"
(defun difference (left right)
"compare two lists"

0 comments on commit f4d2a1b

Please sign in to comment.