{"action":"created","issue":{"url":"https://api.github.com/repos/catkin/catkin_tools/issues/270","labels_url":"https://api.github.com/repos/catkin/catkin_tools/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/catkin/catkin_tools/issues/270/comments","events_url":"https://api.github.com/repos/catkin/catkin_tools/issues/270/events","html_url":"https://github.com/catkin/catkin_tools/issues/270","id":126000994,"number":270,"title":"Build fails with rosbash errors from build_env.sh with CATKIN_SHELL=bash","user":{"login":"dornhege","id":2634308,"avatar_url":"https://avatars.githubusercontent.com/u/2634308?v=3","gravatar_id":"","url":"https://api.github.com/users/dornhege","html_url":"https://github.com/dornhege","followers_url":"https://api.github.com/users/dornhege/followers","following_url":"https://api.github.com/users/dornhege/following{/other_user}","gists_url":"https://api.github.com/users/dornhege/gists{/gist_id}","starred_url":"https://api.github.com/users/dornhege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dornhege/subscriptions","organizations_url":"https://api.github.com/users/dornhege/orgs","repos_url":"https://api.github.com/users/dornhege/repos","events_url":"https://api.github.com/users/dornhege/events{/privacy}","received_events_url":"https://api.github.com/users/dornhege/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catkin/catkin_tools/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/catkin/catkin_tools/labels/use%20case","name":"use case","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/catkin/catkin_tools/milestones/3","html_url":"https://github.com/catkin/catkin_tools/milestones/0.4.0%20-%20Second%20Beta%20Announcement","labels_url":"https://api.github.com/repos/catkin/catkin_tools/milestones/3/labels","id":1161028,"number":3,"title":"0.4.0 - Second Beta Announcement","description":"This release will be included the second `catkin_tools` beta announcement. It will include numerous bugfixes, a new execution engine, better I/O capture with automatic warning display, per-package cleaning via linked develspace support, and other minor features.","creator":{"login":"jbohren","id":1253450,"avatar_url":"https://avatars.githubusercontent.com/u/1253450?v=3","gravatar_id":"","url":"https://api.github.com/users/jbohren","html_url":"https://github.com/jbohren","followers_url":"https://api.github.com/users/jbohren/followers","following_url":"https://api.github.com/users/jbohren/following{/other_user}","gists_url":"https://api.github.com/users/jbohren/gists{/gist_id}","starred_url":"https://api.github.com/users/jbohren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbohren/subscriptions","organizations_url":"https://api.github.com/users/jbohren/orgs","repos_url":"https://api.github.com/users/jbohren/repos","events_url":"https://api.github.com/users/jbohren/events{/privacy}","received_events_url":"https://api.github.com/users/jbohren/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":22,"state":"open","created_at":"2015-06-11T21:08:49Z","updated_at":"2016-01-20T02:19:13Z","due_on":"2016-02-15T05:00:00Z","closed_at":null},"comments":7,"created_at":"2016-01-11T17:57:06Z","updated_at":"2016-01-20T02:19:13Z","closed_at":"2016-01-20T02:19:13Z","body":"When I try to build a workspace I get the following errors for each package:\r\n\r\n    ...build_env.sh: 6: /opt/ros/hydro/share/rosbash/rosbash: function: not found\r\n    ...build/<pkg>/build_env.sh: 7: /opt/ros/hydro/share/rosbash/rosbash: [[: not found\r\n    ...build/<pkg>/build_env.sh: 7: /opt/ros/hydro/share/rosbash/rosbash: Linux: not found\r\n    sed: unrecognized option '--extend'\r\n    ...\r\n\r\nThese lines in /opt/ros/hydro/share/rosbash/rosbash just contain some standard `bash` features, like `[[`.\r\n\r\nThe problem is caused by build_env.sh starting with `#!/usr/bin/env sh`, which on my system is a `dash`, not `bash` and somehow rosbash being \"active\".\r\n\r\nI can fix that by editing `verbs/catkin_build/common.py` and changing that to `#!/usr/bin/env bash`. However, I'm not sure if that is the correct fix, especially as that should prevent anyone from building.\r\n\r\nI'm not aware of any unusual system setup that I have, but it might be possible. What would cause such a behavior and is there a proper fix or is this it?"},"comment":{"url":"https://api.github.com/repos/catkin/catkin_tools/issues/comments/173062473","html_url":"https://github.com/catkin/catkin_tools/issues/270#issuecomment-173062473","issue_url":"https://api.github.com/repos/catkin/catkin_tools/issues/270","id":173062473,"user":{"login":"jbohren","id":1253450,"avatar_url":"https://avatars.githubusercontent.com/u/1253450?v=3","gravatar_id":"","url":"https://api.github.com/users/jbohren","html_url":"https://github.com/jbohren","followers_url":"https://api.github.com/users/jbohren/followers","following_url":"https://api.github.com/users/jbohren/following{/other_user}","gists_url":"https://api.github.com/users/jbohren/gists{/gist_id}","starred_url":"https://api.github.com/users/jbohren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbohren/subscriptions","organizations_url":"https://api.github.com/users/jbohren/orgs","repos_url":"https://api.github.com/users/jbohren/repos","events_url":"https://api.github.com/users/jbohren/events{/privacy}","received_events_url":"https://api.github.com/users/jbohren/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T02:19:13Z","updated_at":"2016-01-20T02:19:13Z","body":"This is fixed after merging #249."}}