Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made POSIX compatible to work with dash #209

Closed
wants to merge 1 commit into from

Conversation

isura
Copy link

@isura isura commented Jun 10, 2014

I noticed these errors when running Gazebo:

process[gazebo-2]: started with pid [12052]
/home/isura/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/scripts/gzserver: 5: [: Linux: unexpected operator
process[gazebo_gui-3]: started with pid [12061]
/home/isura/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/scripts/gzclient: 5: [: Linux: unexpected operator

It turns out that /bin/sh used to be a symlink to bash which is okay with "==" for string compare. In later versions of Debian/Ubuntu /bin/sh points to a lighter alternative to bash called dash. Dash is more strict in its POSIX compliance and thus will not accept "==" for string compare.

See references:
http://askubuntu.com/questions/141928/what-is-difference-between-bin-sh-and-bin-bash
http://stackoverflow.com/questions/1089813/bash-dash-and-string-comparison

@jbohren
Copy link
Collaborator

jbohren commented Jun 10, 2014

This is a duplicate of #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants