1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00

Allow psql to handle tilde user expansion for file names.

Zach Irmen
This commit is contained in:
Bruce Momjian
2004-01-09 21:12:20 +00:00
parent 38081fd000
commit 55a92063a7
4 changed files with 83 additions and 4 deletions

View File

@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.35 2003/12/01 22:14:40 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.36 2004/01/09 21:12:20 momjian Exp $
*/
#include "postgres_fe.h"
#include "copy.h"
@ -221,6 +221,7 @@ parse_slash_copy(const char *args)
result->file = NULL;
else
result->file = xstrdup(token);
expand_tilde(&result->file);
token = strtokx(NULL, whitespace, NULL, NULL,
0, false, pset.encoding);