How to add a path to env variable PATH??

Hi,
I want to add a path to the system env variable PATH, I add this line to
file /etc/system/sysinit ,
PATH = /root/bin:$PATH,
But when I reboot qnx,I cannot see I have added this path to PATH.

Can anyone help me??

thanks a lot.

Without the keyword export you are simply adjusting PATH for the duration of
the sysinit script. This adjustment is not exported to other scripts or
applications started from this script.

If you want to make the change globally then it should be exported in
/etc/profile. If you want to make the change per user then export it in
/home/LogName/.profile.

“ray zhong” <zhongyq99@163.net> wrote in message
news:a8b466$f9q$1@inn.qnx.com

Hi,
I want to add a path to the system env variable PATH, I add this line to
file /etc/system/sysinit ,
PATH = /root/bin:$PATH,
But when I reboot qnx,I cannot see I have added this path to PATH.

Can anyone help me??

thanks a lot.

ray zhong wrote:

Hi,
I want to add a path to the system env variable PATH, I add this line to
file /etc/system/sysinit ,
PATH = /root/bin:$PATH,
But when I reboot qnx,I cannot see I have added this path to PATH.

Can anyone help me??

thanks a lot.
\

export PATH=/root/bin:$PATH

/Johan