A script-less basedir alias that works

All development related issues welcome

Moderator: Moderator Team

Post Reply
KenJackson
Posts: 12
Joined: Thu Sep 29, 2005 3:00 pm

A script-less basedir alias that works

Post by KenJackson »

The script basedir.sh in RosBE says:

Code: Select all

# An alias just to "cd $_ROSBE_ROSSOURCEDIR" won't work as bash only expands when executing the shell and then never again
cd "$_ROSBE_ROSSOURCEDIR"
But this works (double quotes required):

Code: Select all

alias basedir="cd \$_ROSBE_ROSSOURCEDIR"
So the alias in RosBE-rc could be replaced with that line and the basedir.sh file deleted.
User avatar
gonzoMD
Posts: 1077
Joined: Fri Oct 20, 2006 7:49 am
Location: Germany
Contact:

Re: A script-less basedir alias that works

Post by gonzoMD »

thank you, but you also could make a patch and file it to Bugzilla
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests