X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 30E883870846 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1589312103; bh=i5OqMxR86foQ9VppRLQBAseI4sgWMoKPzU+OXTdIIkc=; h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To; b=eQ0AuQB/4HGexVPrBtrWaET6EdKk4Nnj6+8BeZVS333LdtTu0yQKTglFBT5j6Nbju JDczVovC8AnG03K8hWoZgmdpuP2q0G+aOM8a10cDLpll2FO1Z1m9WvLkUGeYqKKqOw /WC1/kJtNHkq/S91NH+7CjX8yDi+Qz10VkStz3KY= Authentication-Results: mxback7q.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Tue, 12 May 2020 22:18:12 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <1247338964.20200512221812@yandex.ru> To: Steven Penny , cygwin AT cygwin DOT com Subject: Re: Cygwin convert environment paths In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="cp1250" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 04CJZY8v020305 Greetings, Steven Penny! > I see here: > > That Cygwin does convert some environment variables, from Windows format to > Unix format. For example HOME and TMP. But for me at least, are some important > omissions. > I use APPDATA and PROGRAMFILES a good amount, and those arent converted. To make > it worse, HOMEDRIVE and SYSTEMDRIVE arent converted either, meaning you cant > manually construct the path starting with a variable. This causes some > problems. Take this example: These are not making any sense for Cygwin itself, so they are left alone. > $s_old = realpath('a.txt'); > $s_new = getenv('HOMEDRIVE') . DIRECTORY_SEPARATOR . 'a.txt'; > # PHP Warning: symlink(): No such file or directory > symlink($s_old, $s_new); Use native php ?… -- With best regards, Andrey Repin Tuesday, May 12, 2020 22:17:30 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple