delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/16/18:14:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: home directory.
Date: Thu, 17 Jun 2004 00:12:54 +0200
Lines: 26
Message-ID: <rcco6sjvz7s5$.dlg@thorstenkampe.de>
References: <40D08BF5 DOT 1010700 AT cox DOT net> <20040616191455 DOT Q35039 AT unsane DOT co DOT uk> <40D095A0 DOT 8050605 AT cox DOT net> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040616150816 DOT 0332b528 AT pop DOT prospeed DOT net> <40D0A9EA DOT 9070503 AT cox DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: isi-dial-142-31.isionline-dialin.de
User-Agent: 40tude_Dialog/2.0.12.1de

* Chris W (2004-06-16 22:13 +0100)
> Larry Hall wrote:
>>Look at 'etc/defaults/etc/profile'.  It explains how Cygwin looks for
>>and determines what to set HOME to.  You should be able to track what's
>>going on from there.
>>
>  From what I read there it seems it is setting home based on the values 
> of HOMEDRIVE/HOMEPATH but before it does that it first checks the 
> /etc/passwd file for a path entry for the user and by default there 
> isn't one,

By default there is one (generated by 'mkpasswd').

> and now I can't find where HOMEDRIVE and HOMEPATH get set [...]

These are Windows defaults.

> Now if I could just figure out why, when I hit the [Delete] key in
> bash,  I get a '~' character instead of deleting the character the
> cursor is  at, I would be set.  At least as far as cygwin goes
> anyway.

Just read the beginning of /etc/profile again. There you get answer
and also to your "bashrc" question.

Thorsten


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019