Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Disable command echo in pg_upgrade-created windows scripts
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 27 Jul 2021 15:15:38 +0000 (11:15 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 27 Jul 2021 15:15:38 +0000 (11:15 -0400)
This makes them more like the Unix equivalents.

Discussion: https://postgr.es/m/73deed30-3363-44e9-48a5-98aa66a8a00f@dunslane.net

src/bin/pg_upgrade/pg_upgrade.h

index db96627ccb34519e6246a0fc3a5ab02c3fc5af0a..7038ac12bfcb026762738526632c486400d235fa 100644 (file)
@@ -77,8 +77,9 @@ extern char *output_files[];
 #define pg_mv_file         pgrename
 #define PATH_SEPARATOR     '\\'
 #define PATH_QUOTE '"'
-#define RM_CMD             "DEL /q"
-#define RMDIR_CMD          "RMDIR /s/q"
+/* @ prefix disables command echo in .bat files */
+#define RM_CMD             "@DEL /q"
+#define RMDIR_CMD          "@RMDIR /s/q"
 #define SCRIPT_PREFIX      ""
 #define SCRIPT_EXT         "bat"
 #define EXE_EXT                ".exe"