This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: $HOME variable - cannot cd $HOME


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]