delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/14/18:57:48

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:content-type:mime-version:subject:from
:in-reply-to:date:cc:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=T//o/sOgBDsmtFIOCrCe4/+/aZ1W
oR3EbT136FpGbWb4Dw4fQdMGNCzzTr2032hw0Dg4wyHkvglarlD/S++JGZP81YAV
9LxtUgEzo+fI73jPOyw0L2qY9tj7HhsBuNgC3XzaooSTTdCb14QIcMdt7QikA8fy
bUJzlbRI/lNwBhU=
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:content-type:mime-version:subject:from
:in-reply-to:date:cc:content-transfer-encoding:message-id
:references:to; s=default; bh=61ZuOytf3GJ1moxTZ7t94rCmEVM=; b=dA
nKPKOHe+uT6TXl+ZR+wUM2IneMM5qZkLPsPL+qOK8nuo/uJF01o+TFqq/gTyieCT
H9vHDtqq3U9gM1hF8RRkWY4uGl7O+H7Fzr0KJ0bZzXkQ07Wpa/CaCkMQtz8WbUsu
eZhlwHKeCg4DIUt+HADpzBU430e1SD/188E7JPMy0=
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-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HCc:D*cygwin.com, HCc:U*cygwin
X-HELO: alt-proxy16.mail.unifiedlayer.com
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Subject: Re: Get Cygwin home directory path for current user
From: Vince Rice <vrice AT solidrocksystems DOT com>
In-Reply-To: <CANV9t=Td7_G-Bk2XVyBVY3rN1QorgLsGU1ChBtJHOV7-qZVFcA@mail.gmail.com>
Date: Thu, 14 Feb 2019 17:57:27 -0600
Cc: cygwin AT cygwin DOT com
Message-Id: <BC6C185E-45C5-4C23-A82A-6C9A6EA4B063@solidrocksystems.com>
References: <CANV9t=R83dQddZOVWVUg55t7K=DUyE8BiQ10Pn1v4G+xcgPh3w AT mail DOT gmail DOT com> <9539a1e8-e893-3175-f96c-fb4ad172702c AT redhat DOT com> <CANV9t=R-1XE-cyKa5vtvtu_3dJiYoLRstBTN86JiQ2FS2T+Jyw AT mail DOT gmail DOT com> <2a87c6c0-6a0f-6994-3620-8b0b722d7d49 AT redhat DOT com> <CANV9t=QXVTGF0uS+vNCmkrxNOV7GVAsO_5hTS9hizX0tnW=-PA AT mail DOT gmail DOT com> <06CBB893-FD9F-460F-B00C-E22950036B5E AT solidrocksystems DOT com> <CANV9t=RML1q=ZAQOadvrsjmWn2391s6jr_t1MgbaJxO6DM2V5Q AT mail DOT gmail DOT com> <EE1F333E-3A36-40CE-971B-1791145D29CC AT solidrocksystems DOT com> <CANV9t=Td7_G-Bk2XVyBVY3rN1QorgLsGU1ChBtJHOV7-qZVFcA AT mail DOT gmail DOT com>
To: Bill Stewart <bstewart AT iname DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x1ENvlHq008932

> On Feb 14, 2019, at 5:41 PM, Bill Stewart wrote:
> 
> On Thu, Feb 14, 2019 at 4:32 PM Vince Rice wrote:
> 
>> I didn't suggest everyone did. But people who want tilde expansion do, because it's
>> the shell that is responsible for tilde expansion.
>> ...
>> No, it isn't "oddly" absent. As has been said repeatedly in this thread, tilde expansion
>> is the responsibility of the shell. Cygwin has nothing to do with it. The *shell* does
>> it.
>> ...
>> Because, repeat after me, IT'S THE SHELL THAT DOES THE EXPANSION!
> 
> (?) I understand that the shell does ~ expansion. I am asking for a
> way to get that particular path (forget about the ~ character for the
> time being) without needing to invoke a Cygwin shell in the first
> place. (That was the whole point of the request.)

It would not appear that you do. You asked why a Cygwin shell would be a prerequisite.
That's exactly why a Cygwin shell is a prerequisite—*because it's the Cygwin shell that
does the expansion.* The only way to get the expansion is through a Cygwin shell.

Here, you say "forget about the ~ character." We can't "forget" about the tilde. This whole
conversation is about the tilde, specifically tilde expansion.

You're not going to get tilde expansion outside of a Cygwin shell.
*Because it's the Cygwin shell that does the expansion.*
--
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


- Raw text -


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