#215·usql

\echo and \warn -n problem on interactive

Author: kenshawCreated Apr 4, 2021Updated Sep 23, 2026
Labelsbughelp wantedpsql compatreadline

\echo and \warn when using the -n option works, but the rline library seems to be clearing the line:

bash
$ usql
Type "help" for help.

(not connected)=> \echo -n foo
(not connected)=>

vs psql:

bash
$ psql postgres://postgres:P4ssw0rd@localhost
psql (13.2 (Ubuntu 13.2-1.pgdg20.10+1), server 13.1 (Debian 13.1-1.pgdg100+1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.

postgres=# \echo -n foo
foopostgres=#