This is the mail archive of the
mailing list for the Cygwin project.
Re: problen with run command and the environment
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
|\ _,,,---,,_ firstname.lastname@example.org | email@example.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