X-Spam-Check-By: sourceware.org Date: Thu, 19 Jan 2006 15:27:28 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Holger Krull cc: cygwin AT cygwin DOT com Subject: Re: problen with run command and the environment In-Reply-To: <43CFF32F.8060802@gmx.de> Message-ID: References: <20060119000230 DOT 30295 DOT qmail AT web35612 DOT mail DOT mud DOT yahoo DOT com> <43CFF32F DOT 8060802 AT gmx DOT de> 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 Thu, 19 Jan 2006, Holger Krull wrote: > Jeff Hardy schrieb: > > > /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? > > > > Maybe have bash start run starting bash, like that: > > E:\cygwin\bin\bash.exe -c -l 'run bash -c -l "CYGWIN=server Xwin.exe :0 -query murpel &" ' > > It looks overly complicated, but helps me to keep the cygwin dirs from > the windows Path Variable and to get rid of the extra shell window. This will still flash the bash window, however briefly, when started from a shortcut. The whole point of starting "run" first is to avoid that window. Also, you want to do "exec XWin" from bash, to avoid the extra bash process hanging around. BTW, one rarely mentioned alternative to "run" is "setsid". In a lot of applications, it's just as good. You really mostly want to use run in shortcuts. 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/