{"action":"created","issue":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1751","repository_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior","labels_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1751/labels{/name}","comments_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1751/comments","events_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1751/events","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/issues/1751","id":297166088,"number":1751,"title":"[TW-1727] Overzealous alias expansion","user":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"labels":[{"id":825679217,"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/milestones/27","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/milestone/27","labels_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/milestones/27/labels","id":3107869,"number":27,"title":"Backlog","description":null,"creator":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"open_issues":100,"closed_issues":396,"state":"open","created_at":"2018-02-12T14:09:21Z","updated_at":"2018-02-14T16:44:18Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2018-02-14T16:44:18Z","updated_at":"2018-02-14T16:46:22Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_Daniel Shahaf on 2015-11-18T21:24:42Z says:_ \n\n ```\n% task add find a shell at the beach \nCreated task 1.\n% task _get 1.description\nfind a exec tasksh at the beach\n```\n\nThe word `shell` should not have been subjected to alias expansion, since aliases are for commands only (according to `taskrc(5)`) and the command is `add`.\n\nYes, using a `--` guard inhibits alias expansion, but that is not a solution because a user might call `task add foo bar` without realizing that one of the words in his command line is a configured alias: from that user's perspective, `task` will have silently corrupted his input.  (That's what happened to me, and only thanks to keeping ~/.task in git could I restore the original task description I had added.)"},"comment":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/comments/365669116","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/issues/1751#issuecomment-365669116","issue_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1751","id":365669116,"user":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T16:46:22Z","updated_at":"2018-02-14T16:46:22Z","author_association":"CONTRIBUTOR","body":"_Daniel Shahaf on 2016-01-13T23:09:17Z says:_ \n\n Clarification: I didn't mean to remove the five builtin aliases but to convert them to commands, so `task 5 rm` would continue working as it does today, but `rm` would be a command name in its own right, rather than an alias."}}
{"actor":{"display_login":"taskwarrior"}}