startx hangs on WinXP, xinit doesn't

David.A.Barr@Medstar.net David.A.Barr@Medstar.net
Mon Aug 23 14:45:00 GMT 2004


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.




More information about the Cygwin-xfree mailing list