Skip to content

Better error for windows line endings in the shebang #2783

@brenogil

Description

@brenogil

I have recently switched to fish and I have been trying to run some .sh scripts.
Usually I have no problem but for one particular script I get the error below.

Observed behavior:

Failed to execute process './alt_script.sh'. Reason:
', which is not an executable command.he interpreter '/bin/sh

I believe at least the message could be improved, if nothing else.

Other comments:

I have tried playing with different shebangs:

!/bin/sh

!/bin/bash

!/usr/local/bin/fish


Fish version: fish, version 2.2.0

Operating system: OSX 10.10.5 - Homebrew

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions