X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: $HOME variable - cannot cd $HOME
Date:  Fri, 31 Jul 2009 18:25:55 -0500
Lines: 28
Message-ID: <h4vui8$m1s$1@ger.gmane.org>
References:  <002601ca1231$6eec5540$4cc4ffc0$@edu>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <002601ca1231$6eec5540$4cc4ffc0$@edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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

Marianne Case wrote:

[snip]
> Then I tried to use $HOME directly at the command line and received the s=
ame
> error (my inputs prefixed with a $):
> $ cd $HOME
> : No such file or directory
> $ echo $HOME
> /home/adella
> $ cd /home/adella
> $ pwd
> /home/adella
>=20
> Any idea of what I did wrong during set up would be greatly appreciated.

Try: echo -n $HOME | od -tx1z

If you have od installed you will see how the line ends, if it ends with
hex. 0d then that is the problem, your .bashrc and / or scripts have CR
LF endings, they should only have LF, fix them by using "d2u .bashrc" or
any other file name.

Of course the HOME variable is alredy set to "/home/adella<CR>", you'll
have to set it again by sourcing the .bashrc script.
--=20
Ren=E9 Berber


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

