delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT 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 |
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 AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |