This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question about /etc/profile


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]