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
Kinetic setup.sh script can conflict with aliasing . in the .bashrc #829
Comments
Can you please post the full path as well as the complete content of the file which contains |
"ls -l" was just an example of a Bash command. The files are any Bash scripts that should be run from .bashrc as part of initializing the environment, but in particular:
|
Can you please point to the specific commands being used which are resulting in problems with your local aliases. |
In my .bashrc I have this alias (which I love):
In setup.bash, it conflicts with this line:
which I think can be fixed like this:
I think it's better to insulate scripts from whatever crazy aliases people (like me) may have, although I can see how it might be painful to make that change if the code is spread out. |
Do I understand you correctly that you are aliasing the I don't see an obvious workaround which also works in |
I will close this for now since I don't think this is fixable across all shells. Please feel free to comment and it can be reopened if a clear path forward is known. |
While trying to debug an install I discovered a conflict between setup.sh and an alias in my .bashrc that prevented the ROS_ environment variables being set. Moving the line to source setup.bash above the aliases in .bashrc fixed the problem for me, but to prevent conflicts in the future, setup.sh could use the "command" syntax:
% command ls -l
instead of:
% ls -l
See answers.ros.org
The text was updated successfully, but these errors were encountered: