Hi again, I still having a path problem...
System: Debian 6.
Some infos grabbed in an Xterm:
$ echo $SHELL
/bin/bash
$ echo $PATH
/home/folco/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/share/gcc4ti/bin
$ echo $TIGCC
/usr/local/share/gcc4ti
$TIGCC and the last path of $PATH are defined by myself in ~/.bashrc.
I have said to C::B that I want it to use /bin/bash as my shell.
I have defined 2 tools.
First one is very simple:
executable: xterm
working directory: ${PROJECT_DIR}
All work fine. When I call this tool, I get an Xterm, with the environment that I have defined in my ~/.bashrc
Second one is like that:
executable: xterm
parameters: -hold -e ./build.sh
(header of build.sh: #!/bin/bash)working directory: ${PROJECT_DIR}
My script contain an invocation to
tigcc, which is located in the path defined in my .bashrc. It internally uses the variable
$TIGCC defined in the same place.
The problem is that when my script is executed,
tigcc is not found, because env vars don't seem to be defined at this moment.
I says that
env vars are not defined at this moment because:
- if I execute ./build.sh with my first tool, it works, and I can see the vars if I echo them.
- if I add $TIGCC in Settings -> Environment -> Environment Variables, it works
So it acts like if my system variables were hidden at this moment, and I needed to redefine them internally to be able to use them.
Why are my system settings hidden ? What is wrong ?