On 7/8/20 11:07 AM, Juan José Santamaría Flecha wrote:
>
> On Wed, Jul 8, 2020 at 3:54 PM Andrew Dunstan
> <andrew.dunstan@2ndquadrant.com
> <mailto:andrew.dunstan@2ndquadrant.com>> wrote:
>
>
> Incidentally, perl2host is arguably a bad name for this routine -
> there
> is nothing perl-specific about the paths, they are provided by the
> msys
> environment. Maybe virtual2host or some such would be a better
> name, or
> even just host_path or native_path.
>
>
> There is a utility cygpath [1] meant for the conversion between Unix
> and Windows path formats, that might be a meaningful name also.
>
> [1] http://cygwin.net/cygwin-ug-net/cygpath.html
>
>
Oh, good find. But unfortunately it's not present in my msys1 installations.
So we'll still need to use the 'pwd -W` trick for those.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services