From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22506 invoked by alias); 21 Jan 2004 21:34:42 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 22497 invoked from network); 21 Jan 2004 21:34:41 -0000 Received: from unknown (HELO sdmpc3.sdm) (24.61.92.89) by sources.redhat.com with SMTP; 21 Jan 2004 21:34:41 -0000 Received: from sdmpc3.sdm (localhost.localdomain [127.0.0.1]) by sdmpc3.sdm (Postfix) with SMTP id F095622C1D7 for ; Wed, 21 Jan 2004 16:35:44 -0500 (EST) Received: from [192.168.254.51] (sdmpc8.sdm [192.168.254.51]) by sdmpc3.sdm (Postfix) with ESMTP id 014D422C1D5 for ; Wed, 21 Jan 2004 16:35:42 -0500 (EST) Subject: Re: Startx on WinXP From: "Brian L. Walterr" To: cygwin-xfree@cygwin.com In-Reply-To: References: <078701c3e05c$b3bce520$03fea8c0@sdmpc6> Content-Type: text/plain Message-Id: <1074720943.7620.0.camel@sdmpc8.sdm> Mime-Version: 1.0 Date: Wed, 21 Jan 2004 21:34:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on sdmpc3.sdm X-Spam-Level: X-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-SW-Source: 2004-01/txt/msg00454.txt.bz2 List-Id: Thanks! That makes sense. I'll apply/look at the patch and go from there! Regards, On Wed, 2004-01-21 at 16:07, Igor Pechtchanski wrote: > On Wed, 21 Jan 2004, Brian L. Walter wrote: > > > Greetings, > > > > I've recently installd cygwin on both a win98 machine and a winxp machine. > > The win98 installs works great (except for being really slow, but that's a > > hardware issue.) On the XP side, I've installed it, but getting some > > strange behavior. If I do a 'startx', I get the following: > > > > [: and: unknown operand > > [: and: unknown operand > > > > After doing some playing around with the startx script, I've come to realize > > it's complaining about the bash conditional statements. As though I'm not > > running under bash.... > > > > And as far as I can see, I am. The fall out of this behavior is the > > inability to control which window manager gets started. I can get around > > that by commenting out all of the conditionals in startx, but, this seems at > > best a temporary work around. > > > > Am I missing something in setting up/configuring cygwin to run under XP, > > something that is different than win98? > > > > TIA > > Brian L. Walter > > Brian, > > You didn't do anything wrong. This problem is most likely due to you > having either HOME or TMP set to "C:\Documents and Settings\...". The > "and" in "Documents and settings" is what startx complains about (since it > doesn't quote paths properly). > > I've posted a patch to startx a while ago that fixed this, but it looks > like it hasn't been incorporated in the latest release. Since startx is > just a text file, you can simply apply the patch yourself from > (use "patch -p0 > < startx.patch" in /usr/X11R6/bin). > Igor -- Brian L. Walter Service Data Management "We treat our customers like our future depends on it" www.sdm1.com