postgres.git / summary / log / commit / refs

commit    91d76613b7ec75b6642accaff91dc7d657e549e9
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Tue Jul 27 15:15:38 2021 +0000
First released in: 15.0

    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


src/bin/pg_upgrade/pg_upgrade.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_upgrade/pg_upgrade.h b/src/bin/pg_upgrade/pg_upgrade.h index db96627ccb3..7038ac12bfc 100644 --- a/src/bin/pg_upgrade/pg_upgrade.h +++ b/src/bin/pg_upgrade/pg_upgrade.h @@ -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" [parent: 6feebcb6b446]