|
3 | 3 | *
|
4 | 4 | * Copyright 2000 by PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.52 2001/05/09 17:29:10 momjian Exp $ |
| 6 | + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.53 2001/05/12 17:37:15 tgl Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"command.h"
|
@@ -132,16 +132,16 @@ HandleSlashCmds(const char *line,
|
132 | 132 | {
|
133 | 133 |
|
134 | 134 | /*
|
135 |
| - * If the command was not recognized, try inserting a space after |
136 |
| - * the first letter and call again. The one letter commands allow |
137 |
| - * arguments to start immediately after the command, but that is |
138 |
| - * no longer encouraged. |
| 135 | + * If the command was not recognized, try to parse it as a one-letter |
| 136 | + * command with immediately following argument (a still-supported, |
| 137 | + * but no longer encouraged, syntax). |
139 | 138 | */
|
140 | 139 | charnew_cmd[2];
|
141 | 140 |
|
142 | 141 | new_cmd[0]=my_line[0];
|
143 | 142 | new_cmd[1]='\0';
|
144 | 143 |
|
| 144 | +/* use line for options, because my_line was clobbered above */ |
145 | 145 | status=exec_command(new_cmd,line+1,&continue_parse,query_buf);
|
146 | 146 |
|
147 | 147 | /* continue_parse must be relative to my_line for calculation below */
|
|