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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset=utf-8 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 In-Reply-To: Date: Thu, 14 Feb 2019 17:57:27 -0600 Cc: cygwin AT cygwin DOT com Message-Id: References: <9539a1e8-e893-3175-f96c-fb4ad172702c AT redhat DOT com> <2a87c6c0-6a0f-6994-3620-8b0b722d7d49 AT redhat DOT com> <06CBB893-FD9F-460F-B00C-E22950036B5E AT solidrocksystems DOT com> To: Bill Stewart X-IsSubscribed: yes Content-Transfer-Encoding: 8bit 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