X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: spaces in .bash_profile lead to "command not found"
Date:  Thu, 05 Oct 2006 15:40:37 -0500
Lines: 29
Message-ID: <eg3qk5$91q$1@sea.gmane.org>
References:  <20061005201903.GA13484@dirac.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
In-Reply-To: <20061005201903.GA13484@dirac.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Peter Jay Salzman wrote:
> There are 4 blank lines in my .bash_profile:
> [snip]
> 
> Each blank line generates an error:
> 
>    $ source .bash_profile
>    BEGIN ~/.bash_profile
>    : command not found
>    : command not found
>    : command not found
>    : command not found
>    END ~/.bash_profile
> 
> However, if I comment all the blank lines out, I get no errors.  Each blank
> line in this file seems to be causing a "command not found" error.  What
> could be causing this?

Have you eliminated CR's as the cause (RTFRA and STFLA if you don't know 
what I'm talking about). What version of bash are you using? It would be 
helpful if you read http://cygwin.com/problems.html, especially the part 
about ATTACHING (not pasting in-line) cygcheck output.

(Ooh... google finds lots of "wrong" results for STFLA, but the second 
RTFRA is my big-nasty-rant one ;-).)

-- 
Matthew
Don't use a hippo to... what was I saying?


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

