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

ignore cd path echo when using CDPATH, which breaks catkin usage #654

Merged
merged 1 commit into from
Jun 14, 2014
Merged

ignore cd path echo when using CDPATH, which breaks catkin usage #654

merged 1 commit into from
Jun 14, 2014

Conversation

rhaschke
Copy link
Contributor

cd'ing echos the reached directory to the console when the CDPATH environment variable is used
This breaks the extraction of _CATKIN_SETUP_DIR, because now the directory is listed twice!
see http://superuser.com/questions/90535/how-do-i-turn-of-auto-echo-in-bash-when-i-cd

@dirk-thomas
Copy link
Member

Can you please provide some more information for this?

Whenever I invoke cd with an absolute path it won't print anything since it does not use the CDPATH variable. Is that behavior different on your system?

Also if your CDPATH actually matches the cd folder used in the setup files do you actually have moved the workspace somewhere else and use CDPATH to keep it working?

@rhaschke
Copy link
Contributor Author

Dear Dirk,

you are right, that cd with an absolute path won't print anything.
However, if you use a relative path, it will print the reached directory.
This proved to be a problem for building some packages (though, not all)
as well for sourcing the ROS environment, e.g. using source
install/setup.bash (without an absolute path).

For example, building groovy desktop from source, I get the following
error when building std_msgs:

catkin_generated/env_cached.sh: 12: .: Can't open
*/vol/ros/groovy/build_isolated/std_msgs/catkin_generated**
**/vol/ros/groovy/build_isolated/std_msgs/catkin_generated/setup_cached.sh*
make[1]: *** [CMakeFiles/std_msgs_generate_messages_cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

This error originates in the double output of the path in env.sh, which
is marked bold above.

On 12.06.2014 03:09, Dirk Thomas wrote:

Can you please provide some more information for this?

Whenever I invoke |cd| with an absolute path it won't print anything
since it does not use the |CDPATH| variable. Is that behavior
different on your system?

Also if your CDPATH actually matches the |cd| folder used in the setup
files do you actually have moved the workspace somewhere else and use
CDPATH to keep it working?

I use CDPATH indepentendly from ROS. I didn't move the workspace. Plain
usage of CDPATH to ease hopping to certain (non-ROS) directories.

Kind regards, Robert


Dr. Robert Haschke
Faculty of Technology, Neuroinformatics Group, CITEC-3.309
Bielefeld University, 33615 Bielefeld, Germany
phone: +49-521-106 12122
fax: +49-521-106 6011
mobile: +49-157-817 365 13
WWW: www.neuroinformatik.de

dirk-thomas added a commit that referenced this pull request Jun 14, 2014
ignore cd path echo when using CDPATH, which breaks catkin usage
@dirk-thomas dirk-thomas merged commit 1474f72 into ros:indigo-devel Jun 14, 2014
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.

2 participants