Dan, have a look at
https://wiki.archlinux.org/index.php/Binfmt_misc_for_Java IMO the same
could be used to recognise compiled shell code and use /usr/bin/ksh as
interpreter.
We only have to figure out how to use binfmt.

Olga

On Wed, Apr 25, 2012 at 12:26 PM, Dan Shelton
<dan.f.shel...@googlemail.com> wrote:
> Hello, I have problems with Suse and compiled shell scripts. If I try
> to execute a shell script compiled with shcomp on Solaris Express it
> works like a charm but on Suse the system refuses to execute the
> binary:
> lorddan@test:~> cat x.sh
> print "hello world"
> print --version
> lorddan@test:~> shcomp x.sh x
> lorddan@test:~>
> -bash: ./x: cannot execute binary file
>
> Does anyone have a tip why this fails?
> _______________________________________________
> ast-users mailing list
> ast-users@research.att.com
> https://mailman.research.att.com/mailman/listinfo/ast-users



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanov...@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

_______________________________________________
ast-users mailing list
ast-users@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to