{"action":"created","issue":{"url":"https://api.github.com/repos/devinus/sh/issues/3","labels_url":"https://api.github.com/repos/devinus/sh/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/devinus/sh/issues/3/comments","events_url":"https://api.github.com/repos/devinus/sh/issues/3/events","html_url":"https://github.com/devinus/sh/issues/3","id":92118444,"number":3,"title":"Getting AbnormalError when trying to run \"file\" command with an invalid file path on Ubuntu 14.04","user":{"login":"thestonefox","id":1029673,"avatar_url":"https://avatars.githubusercontent.com/u/1029673?v=3","gravatar_id":"","url":"https://api.github.com/users/thestonefox","html_url":"https://github.com/thestonefox","followers_url":"https://api.github.com/users/thestonefox/followers","following_url":"https://api.github.com/users/thestonefox/following{/other_user}","gists_url":"https://api.github.com/users/thestonefox/gists{/gist_id}","starred_url":"https://api.github.com/users/thestonefox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thestonefox/subscriptions","organizations_url":"https://api.github.com/users/thestonefox/orgs","repos_url":"https://api.github.com/users/thestonefox/repos","events_url":"https://api.github.com/users/thestonefox/events{/privacy}","received_events_url":"https://api.github.com/users/thestonefox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T15:04:27Z","updated_at":"2015-08-02T11:22:56Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to run the following command\r\n\r\n`file -b --mime-type invalid_path/invalid_file.xyz`\r\n\r\nWhich should output\r\n\r\n```ERROR: cannot open `invalid_path/invalid_file.xyz' (No such file or directory)```\r\n\r\nWhen I call `Sh.file \"-b\", \"--mime-type\", \"invalid_path/invalid_file.xyz\"` I get the AbnormalError raised.\r\n\r\nBut when I call `System.cmd(\"file\", [\"-b\", \"--mime-type\", \"invalid_path/invalid_file.xyz\"])` I get the correct output expected above.\r\n\r\nI'm running this on kernel 3.13.0-29-generic\r\n\r\n(as a side, it works fine when running it on my OSX Yosemite machine)\r\n\r\n\r\nErlang/OTP [erts-7.0] [source] [64-bit] --- Elixir 1.0.4"},"comment":{"url":"https://api.github.com/repos/devinus/sh/issues/comments/127016940","html_url":"https://github.com/devinus/sh/issues/3#issuecomment-127016940","issue_url":"https://api.github.com/repos/devinus/sh/issues/3","id":127016940,"user":{"login":"devinus","id":4836,"avatar_url":"https://avatars.githubusercontent.com/u/4836?v=3","gravatar_id":"","url":"https://api.github.com/users/devinus","html_url":"https://github.com/devinus","followers_url":"https://api.github.com/users/devinus/followers","following_url":"https://api.github.com/users/devinus/following{/other_user}","gists_url":"https://api.github.com/users/devinus/gists{/gist_id}","starred_url":"https://api.github.com/users/devinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinus/subscriptions","organizations_url":"https://api.github.com/users/devinus/orgs","repos_url":"https://api.github.com/users/devinus/repos","events_url":"https://api.github.com/users/devinus/events{/privacy}","received_events_url":"https://api.github.com/users/devinus/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T11:22:56Z","updated_at":"2015-08-02T11:22:56Z","body":"`AbnormalError` just means it exited with a non-zero exit status."}}