[ros-users] rosinstall: is setup.sh deprecated?

Ryohei Ueda ueda at jsk.t.u-tokyo.ac.jp
Wed Jan 12 09:20:48 UTC 2011


> Yeah ill push it in the morning. I pulled 0.5.11 from the downloads.  It
> removes the zsh support but the bash is more robust.
setup.bash has another problem (I think you have already known about that).

it uses "dirname $0" to localize the path of the script itself, but we
ROS users dont use setup.bash
as an executable file but just source it from .bashrc. it means that
$0 is always "/bin/bash".

I dont know there is any way to localize the path of the sourced shell script.
rosinstall, i think, need to tell the path of ${ROS_ROOT} to
setup.bash when it generates setup.bash.

-- ryohei



On 12 January 2011 17:39, Tully Foote <tfoote at willowgarage.com> wrote:
> Yeah ill push it in the morning. I pulled 0.5.11 from the downloads.  It
> removes the zsh support but the bash is more robust.
>
> Tully
>
> On Jan 12, 2011 12:32 AM, "Ryohei Ueda" <ueda at jsk.t.u-tokyo.ac.jp> wrote:
>>> In fact, rosinstall could look at the $SHELL variable to try and
>>> output a more specific instruction
>> its a good idea, i think.
>>
>> i hope it will be supported on rosinstall-0.5.12.
>>
>> -- ryohei
>>
>>
>>
>> On 12 January 2011 17:09, Ken Conley <kwc at willowgarage.com> wrote:
>>> On Tue, Jan 11, 2011 at 11:53 PM, Ryohei Ueda <ueda at jsk.t.u-tokyo.ac.jp>
>>> wrote:
>>>> in addition to that, i think the documentation which is outputted at
>>>> the end of execution of the script is a little bit confusing:
>>>> "done. Now, type 'source %s/setup.sh' to set up your environment.
>>>> Add that to the bottom of your ~/.bashrc to set it up every time."
>>>>
>>>> rosinstall, i think, should say "source %s/setup.bash if you are using
>>>> bash."
>>>
>>> In fact, rosinstall could look at the $SHELL variable to try and
>>> output a more specific instruction
>>>
>>>  - Ken
>>> _______________________________________________
>>> ros-users mailing list
>>> ros-users at code.ros.org
>>> https://code.ros.org/mailman/listinfo/ros-users
>>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>



More information about the ros-users mailing list