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 <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 08/22/2004 04:25 PM Please respond to cygwin-xfree To: [EMAIL PROTECTED] 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.