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"
This commit is contained in:
Georgi Valkov 2012-07-17 13:10:18 +03:00
parent c2ea978956
commit f4d2a1bf4d
3 changed files with 6 additions and 3 deletions

View file

@ -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 file

@ -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 file

@ -1,4 +1,5 @@
#!/usr/bin/env emacs --script
#!/bin/sh
:;exec emacs --script "$0" "$@"
(defun difference (left right)
"compare two lists"