From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Cygwin convert environment paths
Date: Sun, 10 May 2020 07:42:16 -0500 [thread overview]
Message-ID: <CAAXzdLX9-nhXdUV8s2XoHAjOaL=KQyGV7v473uU+MudD620PtA@mail.gmail.com> (raw)
I see here:
<https://cygwin.com/cygwin-ug-net/setup-env.html>
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:
<?php
$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);
next reply other threads:[~2020-05-10 12:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-10 12:42 Steven Penny [this message]
2020-05-10 15:06 ` Achim Gratz
2020-05-10 17:52 ` Doug Henderson
2020-05-12 19:18 ` Andrey Repin
2020-05-10 15:48 Steven Penny
2020-05-10 16:41 ` Marco Atzeri
2020-05-10 19:05 ` Achim Gratz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAXzdLX9-nhXdUV8s2XoHAjOaL=KQyGV7v473uU+MudD620PtA@mail.gmail.com' \
--to=svnpenn@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).