Initial setting for bash under X 

Symptom 

dtterm or xterm opened in CDE having bash shell as default shell don't have environment set.

I.e., all the setting in my .profile, .bash_login are not there.

Analysis 

Do the following changes:

In ~/.dtprofile:

#export dtstart_sessionlogfile="/dev/null"
export dtstart_sessionlogfile

In .profile:

echo "Executing the .profile" >> $dtstart_sessionlogfile

In .bash_login

echo "Executing the .bash_login" >> $dtstart_sessionlogfile
[Tip]

!!

~/.dt/startlog says:

.. --- session log file is /export/home/tong/.dt/sessionlogs/iitrc.acadiau.ca_DISPLAY =:0 …

/export/home/tong/.dt/sessionlogs/iitrc.acadiau.ca_DISPLAY=:0 says:

Session log created Fri May 5 13:59:07 ADT 2000 

Executing the .bash_login Executing the .profile

Conclusion 

So, my initial setting files did get executed. But they don't get carried on into newly created window. "l" might be a proof.

Solution 

Example 1. bash_profile -> bin/.bash_login

to make sure CDE session has the right configuration.

Create.bashrc: .bashrc -> bin/.bashrc

In .bashrc, make sure to setup everything if hasn't been done; whereas do nothing if they have been set.

[Tip]

!!

Now, my nxt is work!