diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-11-06 17:56:40 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-11-06 17:56:40 +0000 |
commit | 1d13bed7356724af9ac104812270577b2899408e (patch) | |
tree | 36298654770fc9c87d7936364f478d8ae377c582 /src/bin/psql/command.c | |
parent | f245c4eb1a0d8520c1a217d18d3e965042a1cb2f (diff) |
Remove directory from cmd.exe default shell.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 727f8c86a6c..6530677bf75 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2004, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.132 2004/11/06 05:20:41 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.133 2004/11/06 17:56:40 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1528,7 +1528,11 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet) #ifndef WIN32 #define DEFAULT_SHELL "/bin/sh" #else -#define DEFAULT_SHELL "c:/windows/system32/cmd.exe" +/* + * CMD.EXE is in different places in different Win32 releases so we + * have to rely on the path to find it. + */ +#define DEFAULT_SHELL "cmd.exe" #endif static bool |