delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/25/17:26:59

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sun, 25 Jan 2004 17:26:44 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: f00roax AT dd DOT chalmers DOT se
cc: cygwin AT cygwin DOT com
Subject: Re: .bashrc issues caused by spaces in the pathname of my user profile
In-Reply-To: <6.0.0.22.2.20040125145932.0426a630@vtek.chalmers.se>
Message-ID: <Pine.GSO.4.56.0401251723220.16692@slinky.cs.nyu.edu>
References: <6 DOT 0 DOT 0 DOT 22 DOT 2 DOT 20040125145932 DOT 0426a630 AT vtek DOT chalmers DOT se>
MIME-Version: 1.0

On Sun, 25 Jan 2004 f00roax<at>dd<dot>chalmers<dot>se wrote:

> I have fairly recently installed cygwin into my Windows 98 system and I
> have run into the unfortunate coincidence of having spaces in my username.
> That seems to have caused Bash to fail reading the .bashrc file of my
> /home/User Name directory no matter what I do to fix this problem. Of
> course I have made an elaborate attempt to find the answer to my problem in
> the mail list directory, faq, user's guide and google, without any luck
> whatsoever. Here are the course of actions I have been taken:
> In the cygwin.bat file I specified
> set HOME="C:\CYGWIN\HOME\USER NAME"
> getting error messages. I also tried the following three variations:
> set HOME='"C:\CYGWIN\HOME\USER NAME"'
> set HOME=C:\CYGWIN\HOME\USER NAME
> set HOME=C:\CYGWIN\HOME\USER\ NAME
> also that without any luck.
> I even removed the entire line getting an error. When I specified the path
> without the quotes, Bash did at least load the .profile script, but not
> .bashrc. Entering ls "$HOME", cd "$HOME" ... in the shell worked fine as
> well, but the .xinitrc did not like the path given to the interpreter, when
> invoking thet script. The same condition was also rendered when I removed
> the ...HOME... line from the cygwin.bat file.
> On one occasion I managed to make Bash read the .bashrc file when running
> it for the first time right after bootup. At that particular point of time
> it also gave me the error message "Out of environment space". I closed the
> window, opened the properties dialog of the shortcut and under the memory
> tab I changed the memory of Initial Environment from Auto to 4096 and
> restarted bash. When I runned it again it did not read the .bashrc file.
> It seems like the different parts of Bash handles the $HOME variable in
> different ways. It seems like when I manage to make the one part to parse
> the variable properly the other one fails, and the other way around.
> So I would really appreciate if there is someone out there that has the
> universal solution of this problem that works with all the parts of cygwin.
>
> - Robin.

Robin,

I doubt your problem has anything to do with the space in your home
directory...  You might find running "man -P 'less +132' bash" very
informative.  Hint: the standard cygwin.bat invokes bash as a login shell.
	Igor
P.S. That is not to say that some scripts aren't broken with respect to
spaces in filenames...
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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