{"action":"created","comment":{"url":"https://api.github.com/repos/ftwftw0/42shTests/pulls/comments/53898493","id":53898493,"diff_hunk":"@@ -232,15 +232,25 @@ function run_specs\n \n     printf \"#%s\\n\" \"${TEST_FULLNAME}\"\n \n-    if [ -f \"${TEST}/before_exec\" ]\n-    then\n-      eval \"zsh\" \"${TEST}/before_exec\"\n-    fi\n-\n     RESPONSE_STDOUT=\"${GLOBAL_TMP_DIRECTORY}/${TEST_FULLNAME//\\//-}.stdout\"\n     RESPONSE_STDERR=\"${GLOBAL_TMP_DIRECTORY}/${TEST_FULLNAME//\\//-}.stderr\"\n \n-    eval \"${GLOBAL_PROG}\" < \"${TEST}/stdin\" 1> \"${RESPONSE_STDOUT}.raw\" 2> \"${RESPONSE_STDERR}.raw\"\n+    (\n+      if [ -f \"${TEST}/before_exec\" ]\n+      then\n+\n+        local INDEX=0\n+        local TOTAL=$(awk 'END {print NR+1}' \"${TEST}/before_exec\")\n+        while [ \"$INDEX\" -le \"$TOTAL\" ]\n+        do\n+          eval $(awk -v INDEX=\"${INDEX}\" 'BEGIN {FS=\"=\"} NR == INDEX {print $0; exit}' \"${TEST}/before_exec\")\n+          (( INDEX += 1 ))\n+        done\n+\n+        eval \"zsh\" \"${TEST}/before_exec\"","path":"42shTests.sh","position":25,"original_position":25,"commit_id":"7700aead4ca925da3490f1f2e2533e5e79bdfda7","original_commit_id":"7700aead4ca925da3490f1f2e2533e5e79bdfda7","user":{"login":"jgigault","id":8960628,"avatar_url":"https://avatars.githubusercontent.com/u/8960628?v=3","gravatar_id":"","url":"https://api.github.com/users/jgigault","html_url":"https://github.com/jgigault","followers_url":"https://api.github.com/users/jgigault/followers","following_url":"https://api.github.com/users/jgigault/following{/other_user}","gists_url":"https://api.github.com/users/jgigault/gists{/gist_id}","starred_url":"https://api.github.com/users/jgigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgigault/subscriptions","organizations_url":"https://api.github.com/users/jgigault/orgs","repos_url":"https://api.github.com/users/jgigault/repos","events_url":"https://api.github.com/users/jgigault/events{/privacy}","received_events_url":"https://api.github.com/users/jgigault/received_events","type":"User","site_admin":false},"body":"TODO: Remove this line","created_at":"2016-02-24T06:12:52Z","updated_at":"2016-02-24T06:12:52Z","html_url":"https://github.com/ftwftw0/42shTests/pull/4#discussion_r53898493","pull_request_url":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ftwftw0/42shTests/pulls/comments/53898493"},"html":{"href":"https://github.com/ftwftw0/42shTests/pull/4#discussion_r53898493"},"pull_request":{"href":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4","id":60461399,"html_url":"https://github.com/ftwftw0/42shTests/pull/4","diff_url":"https://github.com/ftwftw0/42shTests/pull/4.diff","patch_url":"https://github.com/ftwftw0/42shTests/pull/4.patch","issue_url":"https://api.github.com/repos/ftwftw0/42shTests/issues/4","number":4,"state":"open","locked":false,"title":"[WIP] Subshell and other changes","user":{"login":"jgigault","id":8960628,"avatar_url":"https://avatars.githubusercontent.com/u/8960628?v=3","gravatar_id":"","url":"https://api.github.com/users/jgigault","html_url":"https://github.com/jgigault","followers_url":"https://api.github.com/users/jgigault/followers","following_url":"https://api.github.com/users/jgigault/following{/other_user}","gists_url":"https://api.github.com/users/jgigault/gists{/gist_id}","starred_url":"https://api.github.com/users/jgigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgigault/subscriptions","organizations_url":"https://api.github.com/users/jgigault/orgs","repos_url":"https://api.github.com/users/jgigault/repos","events_url":"https://api.github.com/users/jgigault/events{/privacy}","received_events_url":"https://api.github.com/users/jgigault/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-24T06:12:10Z","updated_at":"2016-02-24T06:12:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a86795aa0f480ef7e757488e258d0698d0942016","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ftwftw0/42shTests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ftwftw0/42shTests/issues/4/comments","statuses_url":"https://api.github.com/repos/ftwftw0/42shTests/statuses/7700aead4ca925da3490f1f2e2533e5e79bdfda7","head":{"label":"ftwftw0:subshell","ref":"subshell","sha":"7700aead4ca925da3490f1f2e2533e5e79bdfda7","user":{"login":"ftwftw0","id":9664695,"avatar_url":"https://avatars.githubusercontent.com/u/9664695?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwftw0","html_url":"https://github.com/ftwftw0","followers_url":"https://api.github.com/users/ftwftw0/followers","following_url":"https://api.github.com/users/ftwftw0/following{/other_user}","gists_url":"https://api.github.com/users/ftwftw0/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwftw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwftw0/subscriptions","organizations_url":"https://api.github.com/users/ftwftw0/orgs","repos_url":"https://api.github.com/users/ftwftw0/repos","events_url":"https://api.github.com/users/ftwftw0/events{/privacy}","received_events_url":"https://api.github.com/users/ftwftw0/received_events","type":"User","site_admin":false},"repo":{"id":51508797,"name":"42shTests","full_name":"ftwftw0/42shTests","owner":{"login":"ftwftw0","id":9664695,"avatar_url":"https://avatars.githubusercontent.com/u/9664695?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwftw0","html_url":"https://github.com/ftwftw0","followers_url":"https://api.github.com/users/ftwftw0/followers","following_url":"https://api.github.com/users/ftwftw0/following{/other_user}","gists_url":"https://api.github.com/users/ftwftw0/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwftw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwftw0/subscriptions","organizations_url":"https://api.github.com/users/ftwftw0/orgs","repos_url":"https://api.github.com/users/ftwftw0/repos","events_url":"https://api.github.com/users/ftwftw0/events{/privacy}","received_events_url":"https://api.github.com/users/ftwftw0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftwftw0/42shTests","description":"Tests unitaires sur 42sh","fork":false,"url":"https://api.github.com/repos/ftwftw0/42shTests","forks_url":"https://api.github.com/repos/ftwftw0/42shTests/forks","keys_url":"https://api.github.com/repos/ftwftw0/42shTests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftwftw0/42shTests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftwftw0/42shTests/teams","hooks_url":"https://api.github.com/repos/ftwftw0/42shTests/hooks","issue_events_url":"https://api.github.com/repos/ftwftw0/42shTests/issues/events{/number}","events_url":"https://api.github.com/repos/ftwftw0/42shTests/events","assignees_url":"https://api.github.com/repos/ftwftw0/42shTests/assignees{/user}","branches_url":"https://api.github.com/repos/ftwftw0/42shTests/branches{/branch}","tags_url":"https://api.github.com/repos/ftwftw0/42shTests/tags","blobs_url":"https://api.github.com/repos/ftwftw0/42shTests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftwftw0/42shTests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftwftw0/42shTests/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftwftw0/42shTests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftwftw0/42shTests/statuses/{sha}","languages_url":"https://api.github.com/repos/ftwftw0/42shTests/languages","stargazers_url":"https://api.github.com/repos/ftwftw0/42shTests/stargazers","contributors_url":"https://api.github.com/repos/ftwftw0/42shTests/contributors","subscribers_url":"https://api.github.com/repos/ftwftw0/42shTests/subscribers","subscription_url":"https://api.github.com/repos/ftwftw0/42shTests/subscription","commits_url":"https://api.github.com/repos/ftwftw0/42shTests/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftwftw0/42shTests/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftwftw0/42shTests/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftwftw0/42shTests/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftwftw0/42shTests/contents/{+path}","compare_url":"https://api.github.com/repos/ftwftw0/42shTests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftwftw0/42shTests/merges","archive_url":"https://api.github.com/repos/ftwftw0/42shTests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftwftw0/42shTests/downloads","issues_url":"https://api.github.com/repos/ftwftw0/42shTests/issues{/number}","pulls_url":"https://api.github.com/repos/ftwftw0/42shTests/pulls{/number}","milestones_url":"https://api.github.com/repos/ftwftw0/42shTests/milestones{/number}","notifications_url":"https://api.github.com/repos/ftwftw0/42shTests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftwftw0/42shTests/labels{/name}","releases_url":"https://api.github.com/repos/ftwftw0/42shTests/releases{/id}","deployments_url":"https://api.github.com/repos/ftwftw0/42shTests/deployments","created_at":"2016-02-11T10:51:27Z","updated_at":"2016-02-12T12:32:40Z","pushed_at":"2016-02-24T06:12:11Z","git_url":"git://github.com/ftwftw0/42shTests.git","ssh_url":"git@github.com:ftwftw0/42shTests.git","clone_url":"https://github.com/ftwftw0/42shTests.git","svn_url":"https://github.com/ftwftw0/42shTests","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ftwftw0:master","ref":"master","sha":"e0c56b8e110146475c8986fbf8f7cb98a99dc1d9","user":{"login":"ftwftw0","id":9664695,"avatar_url":"https://avatars.githubusercontent.com/u/9664695?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwftw0","html_url":"https://github.com/ftwftw0","followers_url":"https://api.github.com/users/ftwftw0/followers","following_url":"https://api.github.com/users/ftwftw0/following{/other_user}","gists_url":"https://api.github.com/users/ftwftw0/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwftw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwftw0/subscriptions","organizations_url":"https://api.github.com/users/ftwftw0/orgs","repos_url":"https://api.github.com/users/ftwftw0/repos","events_url":"https://api.github.com/users/ftwftw0/events{/privacy}","received_events_url":"https://api.github.com/users/ftwftw0/received_events","type":"User","site_admin":false},"repo":{"id":51508797,"name":"42shTests","full_name":"ftwftw0/42shTests","owner":{"login":"ftwftw0","id":9664695,"avatar_url":"https://avatars.githubusercontent.com/u/9664695?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwftw0","html_url":"https://github.com/ftwftw0","followers_url":"https://api.github.com/users/ftwftw0/followers","following_url":"https://api.github.com/users/ftwftw0/following{/other_user}","gists_url":"https://api.github.com/users/ftwftw0/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwftw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwftw0/subscriptions","organizations_url":"https://api.github.com/users/ftwftw0/orgs","repos_url":"https://api.github.com/users/ftwftw0/repos","events_url":"https://api.github.com/users/ftwftw0/events{/privacy}","received_events_url":"https://api.github.com/users/ftwftw0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftwftw0/42shTests","description":"Tests unitaires sur 42sh","fork":false,"url":"https://api.github.com/repos/ftwftw0/42shTests","forks_url":"https://api.github.com/repos/ftwftw0/42shTests/forks","keys_url":"https://api.github.com/repos/ftwftw0/42shTests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftwftw0/42shTests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftwftw0/42shTests/teams","hooks_url":"https://api.github.com/repos/ftwftw0/42shTests/hooks","issue_events_url":"https://api.github.com/repos/ftwftw0/42shTests/issues/events{/number}","events_url":"https://api.github.com/repos/ftwftw0/42shTests/events","assignees_url":"https://api.github.com/repos/ftwftw0/42shTests/assignees{/user}","branches_url":"https://api.github.com/repos/ftwftw0/42shTests/branches{/branch}","tags_url":"https://api.github.com/repos/ftwftw0/42shTests/tags","blobs_url":"https://api.github.com/repos/ftwftw0/42shTests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftwftw0/42shTests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftwftw0/42shTests/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftwftw0/42shTests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftwftw0/42shTests/statuses/{sha}","languages_url":"https://api.github.com/repos/ftwftw0/42shTests/languages","stargazers_url":"https://api.github.com/repos/ftwftw0/42shTests/stargazers","contributors_url":"https://api.github.com/repos/ftwftw0/42shTests/contributors","subscribers_url":"https://api.github.com/repos/ftwftw0/42shTests/subscribers","subscription_url":"https://api.github.com/repos/ftwftw0/42shTests/subscription","commits_url":"https://api.github.com/repos/ftwftw0/42shTests/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftwftw0/42shTests/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftwftw0/42shTests/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftwftw0/42shTests/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftwftw0/42shTests/contents/{+path}","compare_url":"https://api.github.com/repos/ftwftw0/42shTests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftwftw0/42shTests/merges","archive_url":"https://api.github.com/repos/ftwftw0/42shTests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftwftw0/42shTests/downloads","issues_url":"https://api.github.com/repos/ftwftw0/42shTests/issues{/number}","pulls_url":"https://api.github.com/repos/ftwftw0/42shTests/pulls{/number}","milestones_url":"https://api.github.com/repos/ftwftw0/42shTests/milestones{/number}","notifications_url":"https://api.github.com/repos/ftwftw0/42shTests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftwftw0/42shTests/labels{/name}","releases_url":"https://api.github.com/repos/ftwftw0/42shTests/releases{/id}","deployments_url":"https://api.github.com/repos/ftwftw0/42shTests/deployments","created_at":"2016-02-11T10:51:27Z","updated_at":"2016-02-12T12:32:40Z","pushed_at":"2016-02-24T06:12:11Z","git_url":"git://github.com/ftwftw0/42shTests.git","ssh_url":"git@github.com:ftwftw0/42shTests.git","clone_url":"https://github.com/ftwftw0/42shTests.git","svn_url":"https://github.com/ftwftw0/42shTests","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4"},"html":{"href":"https://github.com/ftwftw0/42shTests/pull/4"},"issue":{"href":"https://api.github.com/repos/ftwftw0/42shTests/issues/4"},"comments":{"href":"https://api.github.com/repos/ftwftw0/42shTests/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ftwftw0/42shTests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ftwftw0/42shTests/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ftwftw0/42shTests/statuses/7700aead4ca925da3490f1f2e2533e5e79bdfda7"}}}}