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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/templates/env.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ if [ $# -eq 0 ] ; then
fi

# source @SETUP_FILENAME@.sh from same directory as this file
_CATKIN_SETUP_DIR=$(cd "`dirname "$0"`" && pwd)
_CATKIN_SETUP_DIR=$(cd "`dirname "$0"`" > /dev/null && pwd)
. "$_CATKIN_SETUP_DIR/@SETUP_FILENAME@.sh"
exec "$@"
2 changes: 1 addition & 1 deletion cmake/templates/setup.bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
CATKIN_SHELL=bash

# source setup.sh from same directory as this file
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" && pwd)
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
. "$_CATKIN_SETUP_DIR/setup.sh"
2 changes: 1 addition & 1 deletion cmake/templates/setup.zsh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# generated from catkin/cmake/templates/setup.zsh.in

CATKIN_SHELL=zsh
_CATKIN_SETUP_DIR=$(builtin cd -q "`dirname "$0"`" && pwd)
_CATKIN_SETUP_DIR=$(builtin cd -q "`dirname "$0"`" > /dev/null && pwd)
emulate sh # emulate POSIX
. "$_CATKIN_SETUP_DIR/setup.sh"
emulate zsh # back to zsh mode