Get Cygwin home directory path for current user

Bill Stewart bstewart@iname.com
Tue Feb 19 16:43:00 GMT 2019


On Fri, Feb 15, 2019 at 11:09 PM L A Walsh wrote:

>     Vince, I think What Bill is trying to ask is how does
> the cygwin shell might do it (answer: look at the source! ;-)).

Or rather more succinctly: "Cygwin, what is the path to the current
user's home directory?"

IMO it would be simpler for cygpath to have a flag for this so we can
simply ask directly instead of collecting stdout from a shell command.

But as I noted - requesting it from a shell _does_ work - my thought
is simply that this would be a rather useful option to have in
cygpath.

Regards,

Bill

--
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



More information about the Cygwin mailing list