From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2093 invoked by alias); 21 Jan 2004 21:07:50 -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 2086 invoked from network); 21 Jan 2004 21:07:50 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 21 Jan 2004 21:07:50 -0000 Received: from slinky.cs.nyu.edu (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id i0LL7no8019983; Wed, 21 Jan 2004 16:07:49 -0500 (EST) Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.2/Submit) with ESMTP id i0LL7mO1019980; Wed, 21 Jan 2004 16:07:49 -0500 (EST) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 21 Jan 2004 21:07:00 -0000 From: Igor Pechtchanski Reply-To: cygwin-xfree@cygwin.com To: cygwin-xfree@cygwin.com, bwalter@sdm1.com Subject: Re: Startx on WinXP In-Reply-To: <078701c3e05c$b3bce520$03fea8c0@sdmpc6> Message-ID: References: <078701c3e05c$b3bce520$03fea8c0@sdmpc6> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-01/txt/msg00453.txt.bz2 List-Id: 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 -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton