Why do we echo "source /opt/ros/kinetic/setup/bash"?
This guide here specifies the command $ echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
to source the setup.bash
in the ~/.bashrc
. For this reason, the end of my .bashrc
has been looking like the code snippet below.
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
Why can't we just add a source /opt/ros/kinetic/setup.bash
to the .bashrc
instead of the echo
?