This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: $HOME variable - cannot cd $HOME
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Fri, 31 Jul 2009 18:25:55 -0500
- Subject: Re: $HOME variable - cannot cd $HOME
- References: <002601ca1231$6eec5540$4cc4ffc0$@edu>
Marianne Case wrote:
[snip]
> Then I tried to use $HOME directly at the command line and received the same
> error (my inputs prefixed with a $):
> $ cd $HOME
> : No such file or directory
> $ echo $HOME
> /home/adella
> $ cd /home/adella
> $ pwd
> /home/adella
>
> 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.
--
René 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