|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2004, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.132 2004/11/0605:20:41 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.133 2004/11/0617:56:40 momjian Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"command.h"
|
@@ -1528,7 +1528,11 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
|
1528 | 1528 | #ifndefWIN32
|
1529 | 1529 | #defineDEFAULT_SHELL "/bin/sh"
|
1530 | 1530 | #else
|
1531 |
| -#defineDEFAULT_SHELL "c:/windows/system32/cmd.exe" |
| 1531 | +/* |
| 1532 | + *CMD.EXE is in different places in different Win32 releases so we |
| 1533 | + *have to rely on the path to find it. |
| 1534 | + */ |
| 1535 | +#defineDEFAULT_SHELL "cmd.exe" |
1532 | 1536 | #endif
|
1533 | 1537 |
|
1534 | 1538 | staticbool
|
|