This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: startx hangs on WinXP, xinit doesn't
- From: David dot A dot Barr at Medstar dot net
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 23 Aug 2004 10:42:57 -0400
- Subject: Re: startx hangs on WinXP, xinit doesn't
- Reply-to: cygwin-xfree at cygwin dot com
In C and Perl programs, a single equals sign is for assignment, but in
this case it is being used correctly for comparison. "man test".
Ariel Millennium Thornton <arielmt@thornton2.com>
Sent by: cygwin-xfree-owner@cygwin.com
08/22/2004 04:25 PM
Please respond to cygwin-xfree
To: cygwin-xfree@cygwin.com
cc:
Subject: Re: startx hangs on WinXP, xinit doesn't
Hello, pv.
On Mon, 16 Aug 2004 22:29:04 -0700 (PDT) p v wrote:
[snip]
> if [ x"$XAUTHORITY" = x ]; then
> XAUTHORITY="$HOME/.Xauthority"
> export XAUTHORITY
> fi
For a _test_ of equality, there should be two equal signs, not one. One
equal sign is an assignment, not a test. What that "if" is testing is
whether the assignment succeeds or not, not whether there really is an
XAUTHORITY or not, and odds are that's what's wrong.