Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit645ebc0

Browse files
committed
Repair misbehavior of \! with immediately following argument that contains
spaces (e.g., '\!ls -l'). Also correct a comment.
1 parentd5096af commit645ebc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/bin/psql/command.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.48 2001/03/22 04:00:18 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.49 2001/04/18 20:53:08 petere Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -139,7 +139,7 @@ HandleSlashCmds(const char *line,
139139
new_cmd[0]=my_line[0];
140140
new_cmd[1]='\0';
141141

142-
status=exec_command(new_cmd,my_line+1,&continue_parse,query_buf);
142+
status=exec_command(new_cmd,line+1,&continue_parse,query_buf);
143143

144144
#if0/* turned out to be too annoying */
145145
if (status!=CMD_UNKNOWN&&isalpha((unsignedchar)new_cmd[0]))
@@ -1189,8 +1189,8 @@ unescape(const unsigned char *source, size_t len)
11891189
* The new user can be NULL. A db name of "-" is the same as the old one.
11901190
* (That is, the one currently in pset. But pset.db can also be NULL. A NULL
11911191
* dbname is handled by libpq.)
1192-
* Returns true if all ok, false if the new connection couldn't be established
1193-
*but theoldone was set back. Otherwise it terminates the program.
1192+
* Returns true if all ok, false if the new connection couldn't be established.
1193+
*Theoldconnection will be kept if the session is interactive.
11941194
*/
11951195
staticbool
11961196
do_connect(constchar*new_dbname,constchar*new_user)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp