Never mind,

I received a friendly reminder that I should have put #!/bin/sh at the top of the file.

Sorry for the noise

Mirko

On Fri, Sep 9, 2016 at 10:30 AM Mirko Vukovic <mirko.vukovic@gmail.com> wrote:
Hello,

I am trying to get ABCL running under Slime on Linux (RHEL6).  I already have it running
on Windows 10.

I wrote the following script (abcl.sh) to launch it:
java \
     -cp  /usr/local/share/java/abcl.jar \
     org.armedbear.lisp.Main

The script resides in /usr/local/bin, and it successfully launches ABCL from the command line of
system-administrator (who installs the software) and other users.

However, in Emacs/slime (latest), I get

emacs: /usr/local/bin/abcl.sh: Exec format error

Process inferior-lisp exited abnormally with code 126

The definition of abcl resides in local-lisp-implementations:
((abcl ("/usr/local/bin/abcl.sh")) (sbcl ("/usr/local/bin/sbcl")))

Actually there is a symbolic link involved: abcl.sh resides in sys-admins directory, and
/usr/local/bin/abcl.sh is a symbolic link to it.  I did try pointing to the script itself, both
from command line of users and from Emacs.  The behavior was the same.

To summarize:
- a script launches ABCL from command line
- Emacs gives an Exec format error
- I did test for symbolic link effects and found none

Thoughts?

Thanks,

Mirko