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?= Subject: Re: $HOME variable - cannot cd $HOME Date: Fri, 31 Jul 2009 18:25:55 -0500 Lines: 28 Message-ID: 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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", 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