Question about /etc/profile

Fernando Barsoba fbarsoba@verizon.net
Mon Jun 13 05:10:00 GMT 2005


Hello,

I'm having problems understanding how cygwin handles the loading of 
/etc/profile:

-> My cygwin.bat says the following:

        @echo off

        F:
        chdir F:\cygwin\bin

        bash --login -i

So, 'bash' supposedly goes and looks for /etc/profile where the environment 
variables are set (PATH, HOME, etc..). However, my installation doesn't have 
/etc/profile. Does this mean that I have to create it myself?

I do find a f:\cygwin\etc\defaults\etc\profile though... Should I put this 
one in my cygwin.bat?

Another thing that I don't understand is why I am not able to execute 
'startx' (X server at /usr/X11R6/bin) even executing first the "profile" 
from above (manually) and having this profile the following:

    PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
    export PATH

Any idea?

Thanks!

FBM



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list