public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Steven Penny <svnpenn@gmail.com>, cygwin@cygwin.com
Subject: Re: Cygwin convert environment paths
Date: Tue, 12 May 2020 22:18:12 +0300	[thread overview]
Message-ID: <1247338964.20200512221812@yandex.ru> (raw)
In-Reply-To: <CAAXzdLX9-nhXdUV8s2XoHAjOaL=KQyGV7v473uU+MudD620PtA@mail.gmail.com>

Greetings, Steven Penny!

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

These are not making any sense for Cygwin itself, so they are left alone.

>     <?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);

Use native php ?…


-- 
With best regards,
Andrey Repin
Tuesday, May 12, 2020 22:17:30

Sorry for my terrible english...

  parent reply	other threads:[~2020-05-12 19:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-10 12:42 Steven Penny
2020-05-10 15:06 ` Achim Gratz
2020-05-10 17:52 ` Doug Henderson
2020-05-12 19:18 ` Andrey Repin [this message]
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=1247338964.20200512221812@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=svnpenn@gmail.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).