{"action":"opened","number":32,"pull_request":{"url":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/32","id":44734902,"html_url":"https://github.com/riscv/riscv-isa-sim/pull/32","diff_url":"https://github.com/riscv/riscv-isa-sim/pull/32.diff","patch_url":"https://github.com/riscv/riscv-isa-sim/pull/32.patch","issue_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/32","number":32,"state":"open","locked":false,"title":"Eliminate non-portable sed usage","user":{"login":"a0u","id":1848449,"avatar_url":"https://avatars.githubusercontent.com/u/1848449?v=3","gravatar_id":"","url":"https://api.github.com/users/a0u","html_url":"https://github.com/a0u","followers_url":"https://api.github.com/users/a0u/followers","following_url":"https://api.github.com/users/a0u/following{/other_user}","gists_url":"https://api.github.com/users/a0u/gists{/gist_id}","starred_url":"https://api.github.com/users/a0u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a0u/subscriptions","organizations_url":"https://api.github.com/users/a0u/orgs","repos_url":"https://api.github.com/users/a0u/repos","events_url":"https://api.github.com/users/a0u/events{/privacy}","received_events_url":"https://api.github.com/users/a0u/received_events","type":"User","site_admin":false},"body":"This fixes issue #30.  This has been tested on FreeBSD, which exhibits the same issue as OS X.\r\n\r\nThe problematic `sed(1)` command is\r\n```\r\nsed 's/\\s\\+\\|$$/\\n/g'\r\n```\r\nFor future reference,\r\n* Use the POSIX character class `[[:space:]]` instead of Perl-style `\\s`.\r\n* The `+` quantifier is part of ERE.  sed is guaranteed to support only BRE by default; replace this with `\\{1,\\}`.\r\n* The `\\n` escape sequence is not guaranteed to be respected in the replacement pattern.  Quoting POSIX on the `s` command: \"The meaning of a '\\' immediately followed by any character other than '&', '\\', a digit, or the delimiter character used for this command, is unspecified.\"\r\n\r\nBetter yet, avoid shell commands and prefer GNU make's text functions where possible.","created_at":"2015-09-11T00:22:03Z","updated_at":"2015-09-11T00:22:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/32/commits","review_comments_url":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/32/comments","review_comment_url":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/32/comments","statuses_url":"https://api.github.com/repos/riscv/riscv-isa-sim/statuses/01189a9395b0a1d996fdd4a96fd664d8147e0249","head":{"label":"riscv:insn-list","ref":"insn-list","sha":"01189a9395b0a1d996fdd4a96fd664d8147e0249","user":{"login":"riscv","id":10872782,"avatar_url":"https://avatars.githubusercontent.com/u/10872782?v=3","gravatar_id":"","url":"https://api.github.com/users/riscv","html_url":"https://github.com/riscv","followers_url":"https://api.github.com/users/riscv/followers","following_url":"https://api.github.com/users/riscv/following{/other_user}","gists_url":"https://api.github.com/users/riscv/gists{/gist_id}","starred_url":"https://api.github.com/users/riscv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riscv/subscriptions","organizations_url":"https://api.github.com/users/riscv/orgs","repos_url":"https://api.github.com/users/riscv/repos","events_url":"https://api.github.com/users/riscv/events{/privacy}","received_events_url":"https://api.github.com/users/riscv/received_events","type":"Organization","site_admin":false},"repo":{"id":2276287,"name":"riscv-isa-sim","full_name":"riscv/riscv-isa-sim","owner":{"login":"riscv","id":10872782,"avatar_url":"https://avatars.githubusercontent.com/u/10872782?v=3","gravatar_id":"","url":"https://api.github.com/users/riscv","html_url":"https://github.com/riscv","followers_url":"https://api.github.com/users/riscv/followers","following_url":"https://api.github.com/users/riscv/following{/other_user}","gists_url":"https://api.github.com/users/riscv/gists{/gist_id}","starred_url":"https://api.github.com/users/riscv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riscv/subscriptions","organizations_url":"https://api.github.com/users/riscv/orgs","repos_url":"https://api.github.com/users/riscv/repos","events_url":"https://api.github.com/users/riscv/events{/privacy}","received_events_url":"https://api.github.com/users/riscv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/riscv/riscv-isa-sim","description":"RISC-V Functional ISA Simulator","fork":false,"url":"https://api.github.com/repos/riscv/riscv-isa-sim","forks_url":"https://api.github.com/repos/riscv/riscv-isa-sim/forks","keys_url":"https://api.github.com/repos/riscv/riscv-isa-sim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riscv/riscv-isa-sim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riscv/riscv-isa-sim/teams","hooks_url":"https://api.github.com/repos/riscv/riscv-isa-sim/hooks","issue_events_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/events{/number}","events_url":"https://api.github.com/repos/riscv/riscv-isa-sim/events","assignees_url":"https://api.github.com/repos/riscv/riscv-isa-sim/assignees{/user}","branches_url":"https://api.github.com/repos/riscv/riscv-isa-sim/branches{/branch}","tags_url":"https://api.github.com/repos/riscv/riscv-isa-sim/tags","blobs_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/refs{/sha}","trees_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riscv/riscv-isa-sim/statuses/{sha}","languages_url":"https://api.github.com/repos/riscv/riscv-isa-sim/languages","stargazers_url":"https://api.github.com/repos/riscv/riscv-isa-sim/stargazers","contributors_url":"https://api.github.com/repos/riscv/riscv-isa-sim/contributors","subscribers_url":"https://api.github.com/repos/riscv/riscv-isa-sim/subscribers","subscription_url":"https://api.github.com/repos/riscv/riscv-isa-sim/subscription","commits_url":"https://api.github.com/repos/riscv/riscv-isa-sim/commits{/sha}","git_commits_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/commits{/sha}","comments_url":"https://api.github.com/repos/riscv/riscv-isa-sim/comments{/number}","issue_comment_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/comments{/number}","contents_url":"https://api.github.com/repos/riscv/riscv-isa-sim/contents/{+path}","compare_url":"https://api.github.com/repos/riscv/riscv-isa-sim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riscv/riscv-isa-sim/merges","archive_url":"https://api.github.com/repos/riscv/riscv-isa-sim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riscv/riscv-isa-sim/downloads","issues_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues{/number}","pulls_url":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls{/number}","milestones_url":"https://api.github.com/repos/riscv/riscv-isa-sim/milestones{/number}","notifications_url":"https://api.github.com/repos/riscv/riscv-isa-sim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riscv/riscv-isa-sim/labels{/name}","releases_url":"https://api.github.com/repos/riscv/riscv-isa-sim/releases{/id}","created_at":"2011-08-26T20:00:24Z","updated_at":"2015-09-09T12:58:33Z","pushed_at":"2015-09-11T00:10:54Z","git_url":"git://github.com/riscv/riscv-isa-sim.git","ssh_url":"git@github.com:riscv/riscv-isa-sim.git","clone_url":"https://github.com/riscv/riscv-isa-sim.git","svn_url":"https://github.com/riscv/riscv-isa-sim","homepage":"","size":2206,"stargazers_count":26,"watchers_count":26,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":4,"forks":29,"open_issues":4,"watchers":26,"default_branch":"master"}},"base":{"label":"riscv:master","ref":"master","sha":"71d04ecd7ab631193a0943f8ddae222090d8e048","user":{"login":"riscv","id":10872782,"avatar_url":"https://avatars.githubusercontent.com/u/10872782?v=3","gravatar_id":"","url":"https://api.github.com/users/riscv","html_url":"https://github.com/riscv","followers_url":"https://api.github.com/users/riscv/followers","following_url":"https://api.github.com/users/riscv/following{/other_user}","gists_url":"https://api.github.com/users/riscv/gists{/gist_id}","starred_url":"https://api.github.com/users/riscv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riscv/subscriptions","organizations_url":"https://api.github.com/users/riscv/orgs","repos_url":"https://api.github.com/users/riscv/repos","events_url":"https://api.github.com/users/riscv/events{/privacy}","received_events_url":"https://api.github.com/users/riscv/received_events","type":"Organization","site_admin":false},"repo":{"id":2276287,"name":"riscv-isa-sim","full_name":"riscv/riscv-isa-sim","owner":{"login":"riscv","id":10872782,"avatar_url":"https://avatars.githubusercontent.com/u/10872782?v=3","gravatar_id":"","url":"https://api.github.com/users/riscv","html_url":"https://github.com/riscv","followers_url":"https://api.github.com/users/riscv/followers","following_url":"https://api.github.com/users/riscv/following{/other_user}","gists_url":"https://api.github.com/users/riscv/gists{/gist_id}","starred_url":"https://api.github.com/users/riscv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riscv/subscriptions","organizations_url":"https://api.github.com/users/riscv/orgs","repos_url":"https://api.github.com/users/riscv/repos","events_url":"https://api.github.com/users/riscv/events{/privacy}","received_events_url":"https://api.github.com/users/riscv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/riscv/riscv-isa-sim","description":"RISC-V Functional ISA Simulator","fork":false,"url":"https://api.github.com/repos/riscv/riscv-isa-sim","forks_url":"https://api.github.com/repos/riscv/riscv-isa-sim/forks","keys_url":"https://api.github.com/repos/riscv/riscv-isa-sim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riscv/riscv-isa-sim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riscv/riscv-isa-sim/teams","hooks_url":"https://api.github.com/repos/riscv/riscv-isa-sim/hooks","issue_events_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/events{/number}","events_url":"https://api.github.com/repos/riscv/riscv-isa-sim/events","assignees_url":"https://api.github.com/repos/riscv/riscv-isa-sim/assignees{/user}","branches_url":"https://api.github.com/repos/riscv/riscv-isa-sim/branches{/branch}","tags_url":"https://api.github.com/repos/riscv/riscv-isa-sim/tags","blobs_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/refs{/sha}","trees_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riscv/riscv-isa-sim/statuses/{sha}","languages_url":"https://api.github.com/repos/riscv/riscv-isa-sim/languages","stargazers_url":"https://api.github.com/repos/riscv/riscv-isa-sim/stargazers","contributors_url":"https://api.github.com/repos/riscv/riscv-isa-sim/contributors","subscribers_url":"https://api.github.com/repos/riscv/riscv-isa-sim/subscribers","subscription_url":"https://api.github.com/repos/riscv/riscv-isa-sim/subscription","commits_url":"https://api.github.com/repos/riscv/riscv-isa-sim/commits{/sha}","git_commits_url":"https://api.github.com/repos/riscv/riscv-isa-sim/git/commits{/sha}","comments_url":"https://api.github.com/repos/riscv/riscv-isa-sim/comments{/number}","issue_comment_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/comments{/number}","contents_url":"https://api.github.com/repos/riscv/riscv-isa-sim/contents/{+path}","compare_url":"https://api.github.com/repos/riscv/riscv-isa-sim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riscv/riscv-isa-sim/merges","archive_url":"https://api.github.com/repos/riscv/riscv-isa-sim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riscv/riscv-isa-sim/downloads","issues_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues{/number}","pulls_url":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls{/number}","milestones_url":"https://api.github.com/repos/riscv/riscv-isa-sim/milestones{/number}","notifications_url":"https://api.github.com/repos/riscv/riscv-isa-sim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riscv/riscv-isa-sim/labels{/name}","releases_url":"https://api.github.com/repos/riscv/riscv-isa-sim/releases{/id}","created_at":"2011-08-26T20:00:24Z","updated_at":"2015-09-09T12:58:33Z","pushed_at":"2015-09-11T00:10:54Z","git_url":"git://github.com/riscv/riscv-isa-sim.git","ssh_url":"git@github.com:riscv/riscv-isa-sim.git","clone_url":"https://github.com/riscv/riscv-isa-sim.git","svn_url":"https://github.com/riscv/riscv-isa-sim","homepage":"","size":2206,"stargazers_count":26,"watchers_count":26,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":4,"forks":29,"open_issues":4,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/32"},"html":{"href":"https://github.com/riscv/riscv-isa-sim/pull/32"},"issue":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/32"},"comments":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/riscv/riscv-isa-sim/statuses/01189a9395b0a1d996fdd4a96fd664d8147e0249"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}