{"action":"closed","issue":{"url":"https://api.github.com/repos/cylc/cylc/issues/931","labels_url":"https://api.github.com/repos/cylc/cylc/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/cylc/cylc/issues/931/comments","events_url":"https://api.github.com/repos/cylc/cylc/issues/931/events","html_url":"https://github.com/cylc/cylc/issues/931","id":30688571,"number":931,"title":"EMPTY WORK DIRECTO REMOVE assumes $HOME set","user":{"login":"m214089","id":1442540,"avatar_url":"https://avatars.githubusercontent.com/u/1442540?v=3","gravatar_id":"","url":"https://api.github.com/users/m214089","html_url":"https://github.com/m214089","followers_url":"https://api.github.com/users/m214089/followers","following_url":"https://api.github.com/users/m214089/following{/other_user}","gists_url":"https://api.github.com/users/m214089/gists{/gist_id}","starred_url":"https://api.github.com/users/m214089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m214089/subscriptions","organizations_url":"https://api.github.com/users/m214089/orgs","repos_url":"https://api.github.com/users/m214089/repos","events_url":"https://api.github.com/users/m214089/events{/privacy}","received_events_url":"https://api.github.com/users/m214089/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cylc/cylc/labels/priority%20low","name":"priority low","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"hjoliver","id":2362137,"avatar_url":"https://avatars.githubusercontent.com/u/2362137?v=3","gravatar_id":"","url":"https://api.github.com/users/hjoliver","html_url":"https://github.com/hjoliver","followers_url":"https://api.github.com/users/hjoliver/followers","following_url":"https://api.github.com/users/hjoliver/following{/other_user}","gists_url":"https://api.github.com/users/hjoliver/gists{/gist_id}","starred_url":"https://api.github.com/users/hjoliver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjoliver/subscriptions","organizations_url":"https://api.github.com/users/hjoliver/orgs","repos_url":"https://api.github.com/users/hjoliver/repos","events_url":"https://api.github.com/users/hjoliver/events{/privacy}","received_events_url":"https://api.github.com/users/hjoliver/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cylc/cylc/milestones/5","html_url":"https://github.com/cylc/cylc/milestones/soon","labels_url":"https://api.github.com/repos/cylc/cylc/milestones/5/labels","id":262614,"number":5,"title":"soon","description":"A few months in the future. Top priority issues and easy fixes should initially be marked against this milestone, and then moved to *next-release* if work progresses quickly enough.","creator":{"login":"hjoliver","id":2362137,"avatar_url":"https://avatars.githubusercontent.com/u/2362137?v=3","gravatar_id":"","url":"https://api.github.com/users/hjoliver","html_url":"https://github.com/hjoliver","followers_url":"https://api.github.com/users/hjoliver/followers","following_url":"https://api.github.com/users/hjoliver/following{/other_user}","gists_url":"https://api.github.com/users/hjoliver/gists{/gist_id}","starred_url":"https://api.github.com/users/hjoliver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjoliver/subscriptions","organizations_url":"https://api.github.com/users/hjoliver/orgs","repos_url":"https://api.github.com/users/hjoliver/repos","events_url":"https://api.github.com/users/hjoliver/events{/privacy}","received_events_url":"https://api.github.com/users/hjoliver/received_events","type":"User","site_admin":false},"open_issues":57,"closed_issues":1,"state":"open","created_at":"2013-02-08T07:07:13Z","updated_at":"2015-05-28T13:54:29Z","due_on":"2015-08-30T23:00:00Z","closed_at":null},"comments":8,"created_at":"2014-04-02T13:45:58Z","updated_at":"2015-05-28T13:54:29Z","closed_at":"2015-05-28T13:54:29Z","body":"Hi HIlary,\r\nthere is a problem with the following construct:\r\n```\r\n# EMPTY WORK DIRECTORY REMOVE:\r\ncd\r\nrmdir $CYLC_TASK_WORK_DIR 2>/dev/null || true\r\n```\r\ncd without argument tries to go back to the home directory. On, at least, one of our compute clusters HOME is not available on the compute nodes so this creates an error.\r\nI think, it is saver to return to $CYLC_SUITE_DEF_PATH, which must be available.\r\nCheerio,\r\nLuis  \r\n"}}