delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/23/02:32:50

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
To: cygwin AT cygwin DOT com
From: =?ISO-8859-15?Q?Ren=E9_Berber?= <rberber AT prodigy DOT net DOT mx>
Subject: Re: /etc/profile always does a "cd $HOME"
Date: Mon, 23 May 2005 01:21:31 -0500
Lines: 26
Message-ID: <d6rsls$aq6$1@sea.gmane.org>
References: <d6qm36$var$1 AT sea DOT gmane DOT org> <d6rnqe$1fl$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <d6rnqe$1fl$1@sea.gmane.org>
X-IsSubscribed: yes

Sven Köhler wrote:

>>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?

Why not use:

c:\cygwin\bin\make

all the necessary paths and variables can be defined in the Makefile.
-- 
René Berber


--
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