Re: git bisect view's use of DISPLAY environment variable in Cygwin
- From
- Hannu Koivisto <azure@iki.fi>
- Date
- Oct 28, 2008, 23:26 UTC
- Message-ID
- <83ej20cndw.fsf@kalahari.s2.org>
- In-Reply-To
- <83iqrccpmk.fsf@kalahari.s2.org>
Hannu Koivisto <azure@iki.fi> writes:
Show 11 quoted lines
> "Christian Couder" <christian.couder@gmail.com> writes: > >> On Tue, Oct 28, 2008 at 6:51 PM, Hannu Koivisto <azure@iki.fi> wrote: >>> "Christian Couder" <christian.couder@gmail.com> writes: > >> We need at least a way to detect we are under Cygwin, because we won't >> change the current behavior for all platforms. >> Is checking for the CYGWIN environment variable enough? > > No, because it may not be set. I would probably do it at compile > time using __CYGWIN__ definition. I don't know what's the status
Argh, I didn't realize git-bisect is a shell script. For detecting Cygwin in shell scripts I have tested if `uname` matches CYGWIN*. For detecting Windows I have tested if PROCESSOR_ARCHITECTURE is set. There may well be better ways.
-- Hannu