{"action":"created","issue":{"url":"https://api.github.com/repos/dthree/cash/issues/50","repository_url":"https://api.github.com/repos/dthree/cash","labels_url":"https://api.github.com/repos/dthree/cash/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/dthree/cash/issues/50/comments","events_url":"https://api.github.com/repos/dthree/cash/issues/50/events","html_url":"https://github.com/dthree/cash/pull/50","id":137973827,"number":50,"title":"New command: source","user":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T19:50:12Z","updated_at":"2016-03-02T20:41:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dthree/cash/pulls/50","html_url":"https://github.com/dthree/cash/pull/50","diff_url":"https://github.com/dthree/cash/pull/50.diff","patch_url":"https://github.com/dthree/cash/pull/50.patch"},"body":"This adds [source](http://ss64.com/bash/source.html) as requested in the roadmap.\r\n\r\nThis executes any given cash script in the current environment, allowing it to modify variables, aliases, current directory, etc.\r\n\r\nI also added in code to check for an initialization file, as requested in #20. This file is named `.cashrc` on Linux/unix systems (following the common convention), and is named `_cashrc` for Windows (this is consistent with how vim looks for `_vimrc`, `_gvimrc`, etc. This file must be located in the user's home folder.\r\n\r\nI tried allowing this to be an external command, so deps and such should be double checked for that."},"comment":{"url":"https://api.github.com/repos/dthree/cash/issues/comments/191420347","html_url":"https://github.com/dthree/cash/pull/50#issuecomment-191420347","issue_url":"https://api.github.com/repos/dthree/cash/issues/50","id":191420347,"user":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T20:41:17Z","updated_at":"2016-03-02T20:41:17Z","body":"Whoops. I see the issue with appveyor. The test case is invalid on windows (since ShellJS's `chmod()` doesn't work well on Windows). This has been a struggle for us to get quite right in the project.\r\n\r\nI'll probably skip the test for Windows (it just checks that attempting to read from an unreadable file is an error). If I can find out how to make `chmod()` work better on ShellJS, we can add it back in once that's fixed."}}