Skip to content

SHC fails if bash script starts with : "#!/usr/bin/env bash" it has to be "#!/usr/bin/bash" #176

Description

@Jim-JMCD

SHC fails if bash script starts with : #!/usr/bin/env bash it has to be #!/usr/bin/bash

Error message: shc Unknown shell (env): specify [-i][-x][-l]

Problem could be easily fixed by adding to documentation.


No where in the documentation or man pages does mention which shell it is compatible with.
#!/usr/bin/bash or #!/usr/bin/sh. There is the assumption that a SHC binary created in bash environment is for a bash shell environment, similarly the sh shell. What about other shells?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions