delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/13/00:48:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 13 Jun 2005 00:47:56 -0400
From: "Fernando Barsoba" <fbarsoba AT verizon DOT net>
Subject: Question about /etc/profile
To: <cygwin AT cygwin DOT com>
Message-id: <000c01c56fd3$116aed50$0202a8c0@SERVER>
MIME-version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019