{"action":"created","issue":{"url":"https://api.github.com/repos/cask/cask/issues/339","repository_url":"https://api.github.com/repos/cask/cask","labels_url":"https://api.github.com/repos/cask/cask/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/cask/cask/issues/339/comments","events_url":"https://api.github.com/repos/cask/cask/issues/339/events","html_url":"https://github.com/cask/cask/issues/339","id":146891183,"number":339,"title":"Setting $EMACS environment variable does not work","user":{"login":"paldepind","id":521604,"avatar_url":"https://avatars.githubusercontent.com/u/521604?v=3","gravatar_id":"","url":"https://api.github.com/users/paldepind","html_url":"https://github.com/paldepind","followers_url":"https://api.github.com/users/paldepind/followers","following_url":"https://api.github.com/users/paldepind/following{/other_user}","gists_url":"https://api.github.com/users/paldepind/gists{/gist_id}","starred_url":"https://api.github.com/users/paldepind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paldepind/subscriptions","organizations_url":"https://api.github.com/users/paldepind/orgs","repos_url":"https://api.github.com/users/paldepind/repos","events_url":"https://api.github.com/users/paldepind/events{/privacy}","received_events_url":"https://api.github.com/users/paldepind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-08T10:47:58Z","updated_at":"2016-04-12T07:41:40Z","closed_at":null,"body":"Thank you for maintaining and developing Cask.\r\n\r\nI am not sure if this is a bug in Cask. But when I set the `$EMACS` environment variable and run `cask exec ecukes` I get the following error:\r\n\r\n```\r\n$ cask exec ecukes\r\ncask exec: error: [Errno 2] No such file or directory\r\n```\r\n\r\nI've tried both\r\n\r\n```\r\nEMACS=\"$(evm bin emacs-24.4-travis)\"\r\n```\r\n\r\nAnd\r\n\r\n```\r\nEMACS=\"path/to/compiled/emacs\"\r\n```\r\n\r\nI am using Cask version 0.7.4. Running Cask without the environment variable set works just fine."},"comment":{"url":"https://api.github.com/repos/cask/cask/issues/comments/208759200","html_url":"https://github.com/cask/cask/issues/339#issuecomment-208759200","issue_url":"https://api.github.com/repos/cask/cask/issues/339","id":208759200,"user":{"login":"paldepind","id":521604,"avatar_url":"https://avatars.githubusercontent.com/u/521604?v=3","gravatar_id":"","url":"https://api.github.com/users/paldepind","html_url":"https://github.com/paldepind","followers_url":"https://api.github.com/users/paldepind/followers","following_url":"https://api.github.com/users/paldepind/following{/other_user}","gists_url":"https://api.github.com/users/paldepind/gists{/gist_id}","starred_url":"https://api.github.com/users/paldepind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paldepind/subscriptions","organizations_url":"https://api.github.com/users/paldepind/orgs","repos_url":"https://api.github.com/users/paldepind/repos","events_url":"https://api.github.com/users/paldepind/events{/privacy}","received_events_url":"https://api.github.com/users/paldepind/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T07:41:40Z","updated_at":"2016-04-12T07:41:40Z","body":"Yes. Installing the dependencies worked. The only reason to leave it open would be that maybe the error message should be improved. `No such file or directory` is not that helpful."}}