Web lists-archives.com

Re: Get Cygwin home directory path for current user




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