X-Spam-Check-By: sourceware.org Date: Wed, 18 Jan 2006 19:21:42 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Jeff Hardy 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: References: <20060119000230 DOT 30295 DOT qmail AT web35612 DOT mail DOT mud DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 , 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/