Fix broken Install.bat when target directory contains a space - Mailing list pgsql-hackers

From Michael Paquier
Subject Fix broken Install.bat when target directory contains a space
Date
Msg-id CAB7nPqSoxVaOGw9t4NCGX3PJT4ruXstcVnh6RvZGa7w7eFU0HA@mail.gmail.com
Whole thread Raw
Responses Re: Fix broken Install.bat when target directory contains a space  (Asif Naeem <anaeem.it@gmail.com>)
List pgsql-hackers
Hi all,

When using install.bat with a path containing spaces, I got surprised
by a couple of errors.
1) First with this path:
$ install "c:\Program Files\pgsql"
I am getting the following error:
Files\pgsql""=="" was unexpected at this time.
This is caused by an incorrect evaluation of the first parameter in install.bat.
2) After correcting the first error, the path is truncated to
c:\Program because first argument value does not seem to be correctly
parsed when used with install.pl.

Attached is a patch fixing both problems. I imagine that it would be
good to get that backpatched.
Regards,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: Odd behavior of updatable security barrier views on foreign tables
Next
From: Jan de Visser
Date:
Subject: Re: Idea: closing the loop for "pg_ctl reload"