View Single Post
  #1   (View Single Post)  
Old 15th July 2013
Majorix Majorix is offline
Port Guard
 
Join Date: Apr 2012
Posts: 13
Default Have to Source .profile Implicitly

I have just installed OpenBSD 5.3 with XFCE.

I am exporting a PKG_PATH variable in ~/.profile. When I launched a terminal and tried to use this variable (indirectly, via pkg_add) I saw that the variable was not initiated, as such it is blank and pkg_add fails. So I sourced the file myself, and it worked.

Weird thing is, when I restart the terminal same thing happens again. Even after a reboot, each time I launch a terminal I have to source .profile. Shouldn't a terminal take care of this automatically and source it? At least this was the case with other systems I have used in the past.

It happens with both the root and the normal user.

I have googled but did not find any helpful information. Can someone help me?
Reply With Quote