This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
      |\      _,,,---,,_ |
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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]