delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:in-reply-to | |
:references:mime-version:content-type:content-transfer-encoding; | |
q=dns; s=default; b=VLQBHZT+RCwbojHha+LOkr4n7LGAlumbkk290sQB/Gs | |
kHWNeWVmGG7RfwP5kp4Par6aQnBC3SgnFpWibRfGPrH79uzavT7t9zRqG3Lh4mNv | |
icrPj/1nqhpLC/+bPCCA7wJfJaXm9dI3SOvZuOXEETC1pL3g3AFdqWeeo6VlyWZ4 | |
= | |
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:date:from:to:subject:message-id:in-reply-to | |
:references:mime-version:content-type:content-transfer-encoding; | |
s=default; bh=LndHbxoBlA/bQEjYrWbtjBwrp4I=; b=PCawtbOIPG4gOpIIC | |
GjZQ+pgwfwnM0RGPAXsmOEOCgT2XL0Qi+KxDnoJ8OWN4wvX0msRGJ+PCJvI6EIb+ | |
fasgH41sJNJFW34FdYbrO9c/z36lAAeQe1A2vjiwp5eR/N0sooDrW0p2emog/ujF | |
neGFruhvQXERXNdoL6Zt1qBM8I= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:D*ne.jp, Hx-spam-relays-external:Sendmail, H*RU:Sendmail, UD:jp |
X-HELO: | conssluserg-04.nifty.com |
DKIM-Filter: | OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x1FGEW1T002346 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1550247272; bh=EVt7VrFPILQ6oX2llzxSte01sjodPljc5pOsADWBl7Q=; h=Date:From:To:Subject:In-Reply-To:References:From; b=i5mavAaQvO+I0FONFuLkqvGyND9onx1DfKQnbYBlDPY74Vsx5wKLp/7C+jK0Jyu3C BAF9qIKFV4EG0bgoVF26vJDumjXYDLN02ckCRsKjyitZDbsx7FiZV3yhJOqmv2Nnox vQYSG5pziiO5wqCBwh59CEjN3cE64hWpFA1gQ80c0dBd1BCtT/vMp24hfKuV1aOHoQ qVTSJJia8NEFduBn4268vdyDEZPXEq/MgYCnmXVw0e6HR65+jb2ClPCJB4BJ5SQjuh wDDOeXp7f3gxXNulUllT/XHChtgEqsj5EBtb2C1knOmc/UshY5aeiTX3IE0wVkeAp3 R3YlU+AWsShiA== |
Date: | Sat, 16 Feb 2019 01:14:44 +0900 |
From: | Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> |
To: | Bill Stewart <bstewart AT iname DOT com>, cygwin AT cygwin DOT com |
Subject: | Re: Get Cygwin home directory path for current user |
Message-Id: | <20190216011444.c1303c92d2cd9af253b3e0d9@nifty.ne.jp> |
In-Reply-To: | <CANV9t=Td7_G-Bk2XVyBVY3rN1QorgLsGU1ChBtJHOV7-qZVFcA@mail.gmail.com> |
References: | <CANV9t=R83dQddZOVWVUg55t7K=DUyE8BiQ10Pn1v4G+xcgPh3w AT mail DOT gmail DOT com> <9539a1e8-e893-3175-f96c-fb4ad172702c AT redhat DOT com> <CANV9t=R-1XE-cyKa5vtvtu_3dJiYoLRstBTN86JiQ2FS2T+Jyw AT mail DOT gmail DOT com> <2a87c6c0-6a0f-6994-3620-8b0b722d7d49 AT redhat DOT com> <CANV9t=QXVTGF0uS+vNCmkrxNOV7GVAsO_5hTS9hizX0tnW=-PA AT mail DOT gmail DOT com> <06CBB893-FD9F-460F-B00C-E22950036B5E AT solidrocksystems DOT com> <CANV9t=RML1q=ZAQOadvrsjmWn2391s6jr_t1MgbaJxO6DM2V5Q AT mail DOT gmail DOT com> <EE1F333E-3A36-40CE-971B-1791145D29CC AT solidrocksystems DOT com> <CANV9t=Td7_G-Bk2XVyBVY3rN1QorgLsGU1ChBtJHOV7-qZVFcA AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
On Thu, 14 Feb 2019 16:41:11 -0700 Bill Stewart wrote: > (?) 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.) If you don't want to use "shell", you can: c:/cygwin/bin/cygpath -w $(c:/cygwin/bin/getent passwd $env:USERNAME | c:/cygwin/bin/cut -d: -f6) but I'm not sure if you think this is "awkward" as well. -- Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |