This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Get Cygwin home directory path for current user
> 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