Re: CYGWIN Installer should setup a root environment variable

2002-11-07 Thread Warren Young
Chris Walters wrote: `cygpath -w /` This is fine, but how do I use the result in a DOS bat script? The short answer is: Get a real shell. The long answer is: While there may be some hack to trick a Microsoft command shell into setting an environment variable from a command's output, it seem

Re: CYGWIN Installer should setup a root environment variable

2002-11-06 Thread Chris Walters
Igor Pechtchanski wrote: On Wed, 6 Nov 2002, Chris Walters wrote: I have experienced many times situations which I would like to refer to CYGWIN's root directory from a bat script. The most generic solution would be to utilise an environment variable such as CYGROOT or (as in startxwin.bat) CYGWI

Re: CYGWIN Installer should setup a root environment variable

2002-11-06 Thread Chris Walters
Igor Pechtchanski wrote: `cygpath -w /` Thanks. > On Wed, 6 Nov 2002, Chris Walters wrote: NT Question: How does cygwin update the System registry (for environment variables) if it is installed as a normal user? I can't modify it myself, so how does the installer do it? It doesn't. It only

Re: cygwin Installer should setup a root environment variable

2002-11-06 Thread Christopher Faylor
On Wed, Nov 06, 2002 at 12:42:21PM +0100, Sven K?hler wrote: >>>I have experienced many times situations which I would like to refer to >>>CYGWIN's root directory from a bat script. The most generic solution >>>would be to utilise an environment variable such as CYGROOT or (as in >>>startxwin.bat)

Re: CYGWIN Installer should setup a root environment variable

2002-11-06 Thread Sven Köhler
>I have experienced many times situations which I would like to refer to >CYGWIN's root directory from a bat script. The most generic solution >would be to utilise an environment variable such as CYGROOT or (as in >startxwin.bat) CYGWIN_ROOT to refer to the absolute windows pathname >(e.g. D:\cygwi

Re: CYGWIN Installer should setup a root environment variable

2002-11-05 Thread Igor Pechtchanski
On Wed, 6 Nov 2002, Chris Walters wrote: > I have experienced many times situations which I would like to refer to > CYGWIN's root directory from a bat script. The most generic solution > would be to utilise an environment variable such as CYGROOT or (as in > startxwin.bat) CYGWIN_ROOT to refer to

CYGWIN Installer should setup a root environment variable

2002-11-05 Thread Chris Walters
I have experienced many times situations which I would like to refer to CYGWIN's root directory from a bat script. The most generic solution would be to utilise an environment variable such as CYGROOT or (as in startxwin.bat) CYGWIN_ROOT to refer to the absolute windows pathname (e.g. D:\cygwin