From f4d2a1bf4d95c9521bdbde3e4f5971aada1224f6 Mon Sep 17 00:00:00 2001 From: Georgi Valkov Date: Tue, 17 Jul 2012 13:10:18 +0300 Subject: [PATCH] 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" --- buildpkg | 3 ++- migrate | 3 ++- missing.el | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/buildpkg b/buildpkg index b03337d8..13bb762c 100755 --- a/buildpkg +++ b/buildpkg @@ -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)) diff --git a/migrate b/migrate index a9b77287..843c7eec 100755 --- a/migrate +++ b/migrate @@ -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" diff --git a/missing.el b/missing.el index 93fd0fbb..7047f977 100755 --- a/missing.el +++ b/missing.el @@ -1,4 +1,5 @@ -#!/usr/bin/env emacs --script +#!/bin/sh +:;exec emacs --script "$0" "$@" (defun difference (left right) "compare two lists"