delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/25/09:21:16

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: <6.0.0.22.2.20040125145932.0426a630@vtek.chalmers.se>
X-Sender: gu99roax AT mail DOT dd DOT chalmers DOT se
Date: Sun, 25 Jan 2004 15:29:17 +0100
To: cygwin AT cygwin DOT com
From: f00roax AT dd DOT chalmers DOT se
Subject: .bashrc issues caused by spaces in the pathname of my user profile
Mime-Version: 1.0
X-IsSubscribed: yes

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.


--
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