delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/03/13:59:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Fri, 3 Dec 2004 13:59:00 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Felipe Franciosi <ozzy AT cpad DOT pucrs DOT br>
cc: cygwin-apps AT cygwin DOT com, cygwin AT cygwin DOT com
Subject: Re: .bash_profile and spaces
In-Reply-To: <E1CaICT-0000aC-00@marfim.cpad.pucrs.br>
Message-ID: <Pine.GSO.4.61.0412031357360.28143@slinky.cs.nyu.edu>
References: <E1CaICT-0000aC-00 AT marfim DOT cpad DOT pucrs DOT br>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 3 Dec 2004, Felipe Franciosi wrote:

> Hello there!
>
> I've looked into this list archives and haven't found this issue being
> discussed before, so I've decided to post it.
>
> It's my first time using cygwin, and I've noticed that the .bash_profile
> file came with the following content:
>
> --------------------8<--------------------
> if [ -e ${HOME}/.bashrc ] ; then
>   source ${HOME}/.bashrc
> fi
> --------------------8<--------------------
>
> Well, the thing is that neither this test neither the command line would
> work with directories containing spaces.
>
> I think that it's very common for windows users to have spaces on their
> usernames (my case), which would automatically include a space into the
> ${HOME} variable.
>
> The solution I've found to fix this issue is to set commas around both
> lines, resulting in this:
>
> --------------------8<--------------------
> if [ -e "${HOME}/.bashrc" ] ; then
>   source "${HOME}/.bashrc"
> fi
> --------------------8<--------------------
>
> What do you say about it?

We'd say that cygwin-apps is the wrong list for this report; that the
right list is the main Cygwin list (<cygwin at cygwin dot com>); and that
this issue *is* in the archives of that list.

Redirecting.  Please remove cygwin-apps from any further discussion on
this.
	Igor
-- 
				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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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