pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: On Windows, use COMSPEC to find the location of cmd.exe.
Date: Mon, 28 Oct 2019 18:15:08 +0000
Message-ID: <E1iP9Xo-00035j-R6@gemulon.postgresql.org> (raw)

On Windows, use COMSPEC to find the location of cmd.exe.

Historically, psql consulted COMSPEC to spawn a shell in its \! command,
but we just invoked "cmd" when spawning shells in pg_ctl and pg_regress.
It seems better to rely on the environment variable, if it's set,
in all cases.

It's debatable whether this is a bug fix or just a behavioral change,
so no back-patch.

Juan José Santamaría Flecha

Discussion: https://postgr.es/m/16080-5d7f03222469f717@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f88544904e4b57b1a8e969a5d594288554417c88

Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c       | 14 ++++++++++----
src/test/regress/pg_regress.c |  8 +++++++-
2 files changed, 17 insertions(+), 5 deletions(-)



Message-ID: <E1iP9Xo-00035j-R6@gemulon.postgresql.org>
Permalink:  ../E1iP9Xo-00035j-R6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iP9Xo-00035j-R6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: On Windows, use COMSPEC to find the location of cmd.exe.
  In-Reply-To: <E1iP9Xo-00035j-R6@gemulon.postgresql.org>
  References: <E1iP9Xo-00035j-R6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox