Re: Typo in psql doc

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: ludovic.kuty@gmail.com, pgsql-docs@lists.postgresql.org
Date: 2021-04-14T05:58:53Z
Lists: pgsql-docs
On Tue, Apr 13, 2021 at 07:57:54AM +0000, PG Doc comments form wrote:
> There is a spurious space inside the documentation:
> \set HISTFILE ~/.psql_history- :DBNAME
> instead of
> \set HISTFILE ~/.psql_history-:DBNAME

Both commands sey in your .psqlrc results in the same path being
used, as I guess that psqlscanslash.l eats all the whitespaces
in-between.  So the documentation is not wrong here (see also commit
e4c7619).
--
Michael

Commits

  1. doc: Simplify example of HISTFILE for psql

  2. Add space before :DBNAME for proper \set expansion.