{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2783","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2783/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2783/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2783/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2783","id":137582661,"number":2783,"title":"Error when trying execute a shell script","user":{"login":"brenogil","id":5962893,"avatar_url":"https://avatars.githubusercontent.com/u/5962893?v=3","gravatar_id":"","url":"https://api.github.com/users/brenogil","html_url":"https://github.com/brenogil","followers_url":"https://api.github.com/users/brenogil/followers","following_url":"https://api.github.com/users/brenogil/following{/other_user}","gists_url":"https://api.github.com/users/brenogil/gists{/gist_id}","starred_url":"https://api.github.com/users/brenogil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenogil/subscriptions","organizations_url":"https://api.github.com/users/brenogil/orgs","repos_url":"https://api.github.com/users/brenogil/repos","events_url":"https://api.github.com/users/brenogil/events{/privacy}","received_events_url":"https://api.github.com/users/brenogil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T14:07:15Z","updated_at":"2016-03-01T14:37:47Z","closed_at":null,"body":"<!--\r\nThanks for helping to make fish better!\r\n\r\nIf you are asking for help with fish, or you've found a bug:\r\n - Make sure it's not a known or solved issue, by searching https://github.com/fish-shell/fish-shell/issues\r\n - Fill in the following information carefully:\r\n\r\n-->\r\nI have recently switched to fish and I have been trying to run some .sh scripts. \r\nUsually I have no problem but for one particular script I get the error below.\r\n\r\n### Observed behavior:\r\n \r\n\r\n```\r\nFailed to execute process './alt_script.sh'. Reason:\r\n', which is not an executable command.he interpreter '/bin/sh\r\n```\r\n\r\nI believe at least the message could be improved, if nothing else. \r\n\r\n### Other comments:\r\n\r\nI have tried playing with different shebangs:\r\n\r\n#!/bin/sh\r\n#!/bin/bash\r\n#!/usr/local/bin/fish \r\n\r\n---\r\nFish version: fish, version 2.2.0\r\n\r\nOperating system: OSX 10.10.5 - Homebrew\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/190745218","html_url":"https://github.com/fish-shell/fish-shell/issues/2783#issuecomment-190745218","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2783","id":190745218,"user":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T14:37:47Z","updated_at":"2016-03-01T14:37:47Z","body":"Could you upload the script?\r\n\r\n>', which is not an executable command.he interpreter '/bin/sh\r\n\r\nI do believe you've made a copy-paste mistake here - for me the error is\r\n\r\n`The file 'FILENAME' specified the interpreter 'INTERPRETER', which is not an executable command`.\r\n\r\nAlso, check that the mentioned interpreter actually exists and is executable (`test -x $INTERPRETER`).\r\n\r\nAnd what is your locale (`echo $LANG`, dunno if OSX has a `locale` command)?"}}