neurobin / shc

Shell script compiler

Home Page:https://neurobin.org/projects/softwares/unix/shc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I include a script with source?

conandrum opened this issue · comments

I have some bash script that uses:
source "${BASH_SOURCE%/*}/script.sh"

The script.sh file just has some bash functions in it that are called from the main script.

Your program can compile my script.sh but what modifications do I need to do in my main script for this to function?

When I try to source the binary, I get 'cannot execute binary file' and some 'command not found' complaining about the functions that cannot be found.

Ok I think I found it. Bash cannot execute binaries of course.