pgsql: Teach appendShellString() to not quote strings containing "-". - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Teach appendShellString() to not quote strings containing "-".
Date
Msg-id E1bhLV7-0007xX-P7@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Teach appendShellString() to not quote strings containing "-".

Brain fade in commit a00c58314: I was thinking that a string starting with
"-" could be taken as a switch depending on command line syntax.  That's
true, but having appendShellString() quote it will not help, so we may as
well not do so.  Per complaint from Peter Eisentraut.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cdc70597c9ba62aad08a46e55c0c783bf4c21c9c

Modified Files
--------------
src/fe_utils/string_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Repair whitespace in initdb message.
Next
From: Tom Lane
Date:
Subject: pgsql: Guard against possible memory allocation botch in batchmemtuples