delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/19/22:16:18

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
Date: Wed, 19 Jan 2005 22:15:39 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Green, Keith" <KGreen AT ida DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: home directory
In-Reply-To: <EB1A17CD4FB0BD45A016F39F38E4A094948FEE@exch2k2.ida.org>
Message-ID: <Pine.GSO.4.61.0501192211280.26155@slinky.cs.nyu.edu>
References: <EB1A17CD4FB0BD45A016F39F38E4A094948FEE AT exch2k2 DOT ida DOT org>
MIME-Version: 1.0

On Wed, 19 Jan 2005, Green, Keith wrote:

> New problem. Never had this one before.
> In Windows, I define the HOME variable to C:\etc.
>
> However, my cygwin.bat file reads
>    @echo off
>    set HOME=/home/kgreen     (also tried set HOME=H:\cygwin\home\kgreen )
>    H:
>    chdir H:\cygwin\bin
>    bash --login -i
>
> and the pertinent line from /etc/passwd reads:
>
> kgreen:unused_by_nt/2000/xp:12447:10545:kgreen,U-BBB\kgreen,S-1-5-21-748114381-82326301-405542714-2447:/home/kgreen:/bin/bash
>
> BUT ... when I double click on icon (cygwin.bat), it keeps bringing me
> up in /usr/bin.
> I've tried disabling ~/.bashrc and ~/.bash_login (just in case).  Same
> thing.
> The odd thing is that in the cygwin.bat file, regardless of how I set it
> (with POSIX or DOS path name), when the cygwin window comes up and I
> type echo $HOME, it has the right value in it.  That is, $HOME says
> /home/kgreen.
> Also, when I put a ~/.bashrc and ~/.bash_login inside /home/kgreen, it
> uses them!  So it's getting there somehow ... and then deciding on its
> own that it would rather be in /usr/bin!

You could try to start bash with "--login -i -v", which should show the
commands that are executed, and possibly explain why the directory is
changed to /usr/bin.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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