From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19589 invoked by alias); 14 Feb 2019 23:57:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19567 invoked by uid 89); 14 Feb 2019 23:57:37 -0000 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 Received: from alt-proxy16.mail.unifiedlayer.com (HELO alt-proxy16.mail.unifiedlayer.com) (70.40.197.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Feb 2019 23:57:36 +0000 Received: from cmgw12.unifiedlayer.com (unknown [10.9.0.12]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id 116061E0870 for ; Thu, 14 Feb 2019 16:57:35 -0700 (MST) Received: from box867.bluehost.com ([69.195.124.67]) by cmsmtp with ESMTP id uQsogNqz1mds9uQsogBKUf; Thu, 14 Feb 2019 16:57:35 -0700 Received: from 99-106-192-34.lightspeed.ftwotx.sbcglobal.net ([99.106.192.34]:56973 helo=[192.168.1.64]) by box867.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1guQso-0023OW-M7; Thu, 14 Feb 2019 16:57:34 -0700 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: Fri, 15 Feb 2019 00:03:00 -0000 Cc: cygwin@cygwin.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <9539a1e8-e893-3175-f96c-fb4ad172702c@redhat.com> <2a87c6c0-6a0f-6994-3620-8b0b722d7d49@redhat.com> <06CBB893-FD9F-460F-B00C-E22950036B5E@solidrocksystems.com> To: Bill Stewart X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00167.txt.bz2 > On Feb 14, 2019, at 5:41 PM, Bill Stewart wrote: >=20 > On Thu, Feb 14, 2019 at 4:32 PM Vince Rice wrote: >=20 >> I didn't suggest everyone did. But people who want tilde expansion do, b= ecause 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. Th= e *shell* does >> it. >> ... >> Because, repeat after me, IT'S THE SHELL THAT DOES THE EXPANSION! >=20 > (?) 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 pr= erequisite. That's exactly why a Cygwin shell is a prerequisite=E2=80=94*because it's t= he 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 t= ilde. 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