| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4525721E.6070007@cygwin.com> |
| Date: | Thu, 05 Oct 2006 16:59:10 -0400 |
| From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
| Reply-To: | cygwin AT cygwin DOT com |
| User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: spaces in .bash_profile lead to "command not found" |
| References: | <20061005201903 DOT GA13484 AT dirac DOT org> <45256D64 DOT 8060504 AT buddydog DOT org> |
| In-Reply-To: | <45256D64.8060504@buddydog.org> |
| 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 |
Jonathan Arnold wrote:
> Peter Jay Salzman wrote:
>> There are 4 blank lines in my .bash_profile:
>>
>> ====== start file
>> echo 'BEGIN ~/.bash_profile'
>>
>> export ANT_HOME='/cygdrive/c/Java/apache-ant-1.6.5'
>> export JAVA_HOME='/cygdrive/c/Java/jdk1.5.0_08'
>> export CLASSPATH=''
>> export EDITOR='vim'
>> export PATH="${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
>> # export PS1='$ '
>>
>>
>> # echo 'setting up aliases...'
>> # alias ls='ls -F --color'
>> # alias ll='ls -Fl --color'
>> # alias la='ls -Fla --color'
>> # alias lr='ls -Flr --color'
>> # alias lar='ls -Flar --color'
>> # alias desktop='cd /cygdrive/c/Documents\ and\
>> Settings/psalzman/Desktop'
>>
>> echo 'END ~/.bash_profile'
>> ====== end file
>>
>> 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?
>
> CR/LF where there should be CR. Try running d2u. And read the list for
> more gotchas due to the bash upgrade.
>
Essentially correct but I believe you meant to say that CR/LF should be a
LF.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |