Re: minor: ~ not resolved in psql

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Bas Scheffers <bas(at)scheffers(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: minor: ~ not resolved in psql
Date: 2003-11-09 04:23:44
Message-ID: 200311090423.hA94Nit25977@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Peter Eisentraut wrote:
> >> Bas Scheffers writes:
> >>> When opening a file in psql, ~ (the user's home dir) is resolved when
> >>> using tab completion to find the file, but when you hit enter and psql
> >>> actualy tries to open it, you get a file not found error.
> >>
> >> This is not a bug. If there is not file named ~ then it can't be opened.
>
> > Sure looks like a bug to me.
>
> I think so too. If tab completion can find the file then we ought to be
> willing to open it. Changing tab completion to not find the file would
> be okay too, or at least consistent. It's the inconsistency that leads
> me to call it a bug.

Added to TODO:

* Have psql '\i ~/<tab><tab>' actually load files it displays
from home dir

--
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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Greimel 2003-11-09 17:33:22 7.4RC1 et al: cannot find block containing chunk
Previous Message Bruce Momjian 2003-11-09 02:28:16 Re: Autocomplete <TAB> on Postgres7.4beta5 not working?