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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=P7jEXWPmtA3ZGsiZ gXIp2aLbYgdGWPdsZZapMcNqTMyBRK7d6RIHtFe1MS0SHWNR2ET7GDdGD6WgbusK pyzDBU9XgEjJ/qnAq1/IXJ/D9w90Dy46wDaqKoJ/FJf4ojBik7SJSyeHL3ro5Mzc IiHSU6usUL+FB2j8dPZp9m1c7Rc= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=//yQYckdM/nmQahGmqnEfs T6F6o=; b=PGlxMbetWylI3cYVEDKjRTErFXTGx8Qq4my/C+7kLCQ6lfm4QiEoJL KIyjXxItQ/f7vb2mBvHSJ0zUBKbBBeyJk44MWZ1OKEL1dy8PhIszegpfqkS/zDSg /O/V+HZIeFGCPl0NcWTC+Lt8b/lzwKfvJIwvlXO7qlg0/yknoAdJ0= 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.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=win10, reader, discretion, Hx-languages-length:776 X-HELO: smtp-out-no.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: Get Cygwin home directory path for current user To: cygwin AT cygwin DOT com 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> From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <3bcc1a62-2535-9e64-1ad1-380d9dd89843@SystematicSw.ab.ca> Date: Fri, 15 Feb 2019 09:51:00 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2019-02-14 17:03, Bill Stewart wrote: > On Thu, Feb 14, 2019 at 4:57 PM Vince Rice wrote: >> Here, you say "forget about the ~ character." We can't "forget" about the tilde. This whole >> conversation is about the tilde, specifically tilde expansion. > Eric Blake seems to have understood (see his response if it's still unclear). - /home/$LOGNAME - getent passwd $LOGNAME has Cygwin home /home/$LOGNAME as 2nd last field - $HOMEDRIVE$HOMEPATH - $USERPROFILE - FOLDERID_Profile seems to be 40 on Win10 so cygpath -F 40 gives my USERPROFILE -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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