This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 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: startx hangs on WinXP, xinit doesn't


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.



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