delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/30/15:56:00

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=v12kS4c8OLrR4vBJcp+OeZpwRVwQw
XbzosxfWcXtXQWSa29tBfndshZGmzwXv6X80VtcFIfHMYtWyKmOQkOXCw6CN3ekt
MprxG6k9Ly1khFIN2iJs3iLfDunk+dYzCBu29kdE3WtjqxYI+CWAQ9rYqX0QIroi
zAPS1L/HUkST4c=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=zbIGd/b/QByJT2nHYe4ot/DPfkc=; b=de8
wWQcoFHaGkA53ECuDPfsXPygStX4y7drt1P6VM6NDJCU+ZIVu2ssDiN49NWDeJDe
mHkBKI054yAYGFdVXPF0E+/pBaVO1Htb0+lTDzSFdDySO7IQv/6LbshQ8fPYXoJe
IM/tXGVMY9ngc8zvBQ7SuUec4V4cdDw/uZQr0Td4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2 spammy=generically, knowing, blome, Blome
X-HELO: USA7109MR001.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT xerox DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: chere not seeing my preferred $HOME
Date: Thu, 30 Jun 2016 19:55:31 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BB77F14@USA7109MB022.na.xerox.net>
References: <trinity-63d84bf2-3537-4dc9-bd09-fd297e17bc5b-1467314772125 AT 3capp-gmx-bs40>
In-Reply-To: <trinity-63d84bf2-3537-4dc9-bd09-fd297e17bc5b-1467314772125@3capp-gmx-bs40>
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u5UJtumi024055

From: Rainer Blome 
> 
> Hi Kenneth,

Hello. http://www.cygwin.com/acronyms/#PCYMTNQREAIYR
(Actually, I don't know how to do that, so I do it manually.)
 
> not sure what you are aiming for here.

I simply want chere to run my .profile before it presents
me with the bash prompt.
 
> The purpose of `chere` is, quoting from its help,
> to "to right click a folder in Windows Explorer and
> open a Cygwin shell *in that folder*."
> 
> Your `.bash_profile` should run in whatever directory
> it is called from. To refer to a file in your $HOME,
> explicitly do so (by prefixing any path with $HOME).

I guess the problem is knowing how to tell chere what
my Cygwin $HOME is.

> > Hoping I can keep the two domains separate.
> 
> What kind of domains do you mean?
> 
> > chere> echo $HOME; cygpath -w $HOME
> > /cygdrive/c/Users/KNellis
> > C:\Users\KNellis

Using the word "domain" generically, there is my Windows
domain ($HOME is C:\Users\KNellis) and my Cygwin domain
($HOME is C:\cygwin\home\knellis). chere appears to be using
my Windows domain, which doesn't have a .bash_profile,
but I'd like it to use my Cygwin domain.

> How come you have differing values for $HOME in some contexts?

Different domains.

> Do you have two separate Cygwin installs?

No.

> Two home directories?

Yes, a Windows home and a Cygwin home, as demonstrated.

> Where does the "chere" prompt stem from?

Just for this posting I manually entered: PS1='chere> '

--Ken Nellis

- Raw text -


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