We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff5b6c9 commit f44c64cCopy full SHA for f44c64c
src/bin/psql/command.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
5
6
- * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.135 2004/11/15 23:15:12 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.136 2004/11/30 19:01:28 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "command.h"
@@ -1563,10 +1563,12 @@ do_shell(const char *command)
1563
1564
sys = pg_malloc(strlen(shellName) + 16);
1565
sprintf(sys,
1566
+ /* See EDITOR handling comment for an explaination */
1567
#ifndef WIN32
- "exec "
1568
-#endif
+ "exec %s", shellName);
1569
+#else
1570
"%s\"%s\"%s", SYSTEMQUOTE, shellName, SYSTEMQUOTE);
1571
+#endif
1572
result = system(sys);
1573
free(sys);
1574
}
0 commit comments