Re: psql \i handling ~ in specified file name

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Zach Irmen <zirmen(at)shaw(dot)ca>, pgsql-patches(at)postgresql(dot)org
Subject: Re: psql \i handling ~ in specified file name
Date: 2004-01-08 05:21:30
Message-ID: 200401080521.i085LUG10014@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut wrote:
> Zach Irmen wrote:
> > refers to following item on TODO
> > Have psql '\i ~/<tab><tab>' actually load files it displays from home
> > dir
>
> This expansion should also apply to all other commands that take file
> names.

Here is a patch that handles "~" in all the file cases. Thanks for the
initial patch.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 3.1 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Manfred Spraul 2004-01-08 06:17:06 Re: SIGPIPE handling
Previous Message Zach Irmen 2004-01-08 03:34:24 psql error in \? output on \w line