delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/16/06:23:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <010701c2ebae$82eb22c0$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <cygwin AT cygwin DOT com>, "Tim Largy" <largy AT myrealbox DOT com>
References: <b5170i$8er$1 AT main DOT gmane DOT org>
Subject: Re: Home directories and spaces
Date: Sun, 16 Mar 2003 11:23:47 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Tim Largy wrote:
> Hi,
>
> I installed the cygwin distribution (February 14) on Windows XP and am
> having trouble with spaces my home directory "/cygwin/c/Documents and
> Settings/largy". For example, when I run the command "startx" at the
> bash prompt I get:
>
> [: and: unknown operand
> [: and: unknown operand
> export: Settings/largy/.Xauthority: bad variable name
>
> cat: /cygdrive/c/Documents: No such file or directory
> [: and: unknown operand
> [: and: unknown operand
>
> The X server does start, but I'd rather not see these error
> messages--obviously something is wrong. What are most people using as
> their home directories, and from the multitudinous ways of setting it,
> what is the preferred method?

The Cygwin default home dir is /home/username. Did you change it
deliberately, or did you have a HOME variable in your environment, from some
other program?

Try to avoid having spaces in directory names. In an ideal world, it
shouldn't matter, but it unfortunately there are too many scripts with poor
quoting out there.

> Part II
>
> Once the X server starts, the xterms in my session display this
> prompt:
>
> \[\033]0;\w\007
> \033[32m\]\u@\h \[\033[33m\w\033[0m\]
>
> Somehow the PS1 environment variable is screwed up. How should I set
> it?

No, thats /bin/sh (which on Cygwin is ash, the Almqvist shell). You probably
want "xterm -e bash".

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019