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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] rosinstall: is setup.sh deprecated?
> 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 <> 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" <> 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 <> wrote:
>>> On Tue, Jan 11, 2011 at 11:53 PM, Ryohei Ueda <>
>>> 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
>>>
>>> https://code.ros.org/mailman/listinfo/ros-users
>>>
>> _______________________________________________
>> ros-users mailing list
>>
>> https://code.ros.org/mailman/listinfo/ros-users
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>