Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4291F1F1.5080303@upb.de>
Date: Mon, 23 May 2005 17:08:33 +0200
From: =?ISO-8859-15?Q?Sven_K=F6hler?= <skoehler@upb.de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: "Gerrit P. Haase" <gerrit@familiehaase.de>
Cc: cygwin@cygwin.com
Subject: Re: /etc/profile always does a "cd $HOME"
References: <d6qm36$var$1@sea.gmane.org> <d6rnqe$1fl$1@sea.gmane.org> <42917BA1.2010601@familiehaase.de>
In-Reply-To: <42917BA1.2010601@familiehaase.de>
Content-Type: multipart/signed; micalg=pgp-sha1;  protocol="application/pgp-signature";  boundary="------------enig748EF0A81582D012FE966814"

--------------enig748EF0A81582D012FE966814
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

>>> i'd like to use cygwin from a normal windows-app. The problem is, that i
>>> need a login-shell, so that all environment-vars are properly set. The
>>> problem: bash -li always changes the current workdir!
>>
>> So here's what i'd like to do. Perhaps you could help me with that:
>>
>> I'm trying to execute make from a regular windows app. imagine if
>> batch-file if it helps. So my batch-file would look like that
>>
>> c:\cygwin\bin\bash -lc "make"
>>
>> If i use bash without the "-l", the PATH variable contains too few
>> entries, and make isn't found. Besides changed the PATH-variable
>> manually, which possibility is there to execute a command within a fully
>> functional cygwin environment?
>
> Just add x:/cygwin/bin to the global PATH and call make directly?

The point was "a flly functional" environment, and just adding /bin to
the PATH is only half the things, i'd need to do.

Look in /etc/profile, and see how many variables it sets. The PATH also
contains much more entries than just /bin.

--------------enig748EF0A81582D012FE966814
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCkfHxqvCydZdHy5MRAroMAJ9HJSGiH4RFjTHNB//ttJ0DN85JOwCggFyj
Il9NNSH/tPab8V3MmfiUmvg=
=trsH
-----END PGP SIGNATURE-----

--------------enig748EF0A81582D012FE966814--
