{"action":"created","issue":{"url":"https://api.github.com/repos/rcaloras/bash-preexec/issues/6","repository_url":"https://api.github.com/repos/rcaloras/bash-preexec","labels_url":"https://api.github.com/repos/rcaloras/bash-preexec/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/rcaloras/bash-preexec/issues/6/comments","events_url":"https://api.github.com/repos/rcaloras/bash-preexec/issues/6/events","html_url":"https://github.com/rcaloras/bash-preexec/issues/6","id":89064597,"number":6,"title":"`preexec` doesn't work for function declarations and (list) compound commands","user":{"login":"evverx","id":10195800,"avatar_url":"https://avatars.githubusercontent.com/u/10195800?v=3","gravatar_id":"","url":"https://api.github.com/users/evverx","html_url":"https://github.com/evverx","followers_url":"https://api.github.com/users/evverx/followers","following_url":"https://api.github.com/users/evverx/following{/other_user}","gists_url":"https://api.github.com/users/evverx/gists{/gist_id}","starred_url":"https://api.github.com/users/evverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evverx/subscriptions","organizations_url":"https://api.github.com/users/evverx/orgs","repos_url":"https://api.github.com/users/evverx/repos","events_url":"https://api.github.com/users/evverx/events{/privacy}","received_events_url":"https://api.github.com/users/evverx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-06-17T16:28:42Z","updated_at":"2016-03-31T01:40:31Z","closed_at":null,"body":"```shell\r\n$ source .bash-preexec.sh\r\n$ preexec() { echo \"just typed $1\"; }\r\n$ date\r\njust typed date\r\nWed Jun 17 16:20:15 UTC 2015\r\n$ function foo() { echo foo; }\r\n$ foo\r\njust typed foo\r\nfoo\r\n$ (date)\r\nWed Jun 24 02:42:48 UTC 2015\r\n```"},"comment":{"url":"https://api.github.com/repos/rcaloras/bash-preexec/issues/comments/203711206","html_url":"https://github.com/rcaloras/bash-preexec/issues/6#issuecomment-203711206","issue_url":"https://api.github.com/repos/rcaloras/bash-preexec/issues/6","id":203711206,"user":{"login":"rcaloras","id":149818,"avatar_url":"https://avatars.githubusercontent.com/u/149818?v=3","gravatar_id":"","url":"https://api.github.com/users/rcaloras","html_url":"https://github.com/rcaloras","followers_url":"https://api.github.com/users/rcaloras/followers","following_url":"https://api.github.com/users/rcaloras/following{/other_user}","gists_url":"https://api.github.com/users/rcaloras/gists{/gist_id}","starred_url":"https://api.github.com/users/rcaloras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcaloras/subscriptions","organizations_url":"https://api.github.com/users/rcaloras/orgs","repos_url":"https://api.github.com/users/rcaloras/repos","events_url":"https://api.github.com/users/rcaloras/events{/privacy}","received_events_url":"https://api.github.com/users/rcaloras/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T01:40:31Z","updated_at":"2016-03-31T01:40:31Z","body":"@gnachman Awesome, would love to take it off your hands. I'm traveling over the next few weeks, but will take a look at aligning mine with some of your changes when I get back. Thanks! :+1: "}}