Content-Length: 263942 | pFad | http://github.com/postgrespro/postgres/commit/91d76613b7ec75b6642accaff91dc7d657e549e9

53 Disable command echo in pg_upgrade-created windows scripts · postgrespro/postgres@91d7661 · GitHub
Skip to content

Commit 91d7661

Browse files
committed
Disable command echo in pg_upgrade-created windows scripts
This makes them more like the Unix equivalents. Discussion: https://postgr.es/m/73deed30-3363-44e9-48a5-98aa66a8a00f@dunslane.net
1 parent 6feebcb commit 91d7661

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pg_upgrade/pg_upgrade.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ extern char *output_files[];
7777
#define pg_mv_file pgrename
7878
#define PATH_SEPARATOR '\\'
7979
#define PATH_QUOTE '"'
80-
#define RM_CMD "DEL /q"
81-
#define RMDIR_CMD "RMDIR /s/q"
80+
/* @ prefix disables command echo in .bat files */
81+
#define RM_CMD "@DEL /q"
82+
#define RMDIR_CMD "@RMDIR /s/q"
8283
#define SCRIPT_PREFIX ""
8384
#define SCRIPT_EXT "bat"
8485
#define EXE_EXT ".exe"

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/91d76613b7ec75b6642accaff91dc7d657e549e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy