Skip to content

Shell script shebangs do not work #150

@ghost

Description

Originally reported by: ryotakatsuki (Bitbucket: ryotakatsuki, GitHub: ryotakatsuki)


I am using a shell script wrapper to substitute my "python" binary, define some environment variables and call the real binary afterwards.

This results on the shell script being used as the shebang, which does not work in some Unix OS, specifically on OS X.

The solution would be to use "#!/usr/bin/env path/to/script.sh" as the shebang. Looking into the code I saw a fix is already applied for Jython (http://bugs.jython.org/issue1112) so I simply extended it.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions