delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/18/19:21:56

X-Spam-Check-By: sourceware.org
Date: Wed, 18 Jan 2006 19:21:42 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jeff Hardy <linuxrlz AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: problen with run command and the environment
In-Reply-To: <20060119000230.30295.qmail@web35612.mail.mud.yahoo.com>
Message-ID: <Pine.GSO.4.63.0601181915540.20867@access1.cims.nyu.edu>
References: <20060119000230 DOT 30295 DOT qmail AT web35612 DOT mail DOT mud DOT yahoo DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Wed, 18 Jan 2006, Jeff Hardy wrote:

> I have updated my windowsxp with the latest cygwin and
> this breaks several scripts I have that use the run
> command to start xterms without consoles. I have tried
> to track the problem down and at least one problem is
> that if I type "run env > /tmp/xxx" and look at
> /tmp/xxx, most of my environment variables are
> missing. Also, my HOME environment variable is now "/"
> instead of what my home directory is. I have another
> computer that I have not updated yet and when I do the
> same exercise as above, all the environment variables
> come across the run command.
>
> Anybody have any suggestions?

"run" will invoke your application in the Windows environment, not the
Cygwin one.  If you want to reproduce the environment you have in the bash
window, use "run" to start a login bash shell, and have it exec the
command you want to run (e.g., I use 'run c:\cygwin\bin\bash.exe --login
-c "exec /bin/xterm"').

> Here is the output of cygcheck:
> [snip]

In the future, please *attach* the output of cygcheck instead of including
it inline, as indicated in <http://cygwin.com/problems.html>, since it
really screws up the archive searches.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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