Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 85B829FA432 for ; Fri, 29 Sep 2006 01:49:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 58175-09 for ; Fri, 29 Sep 2006 01:49:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp2.rz.uni-karlsruhe.de (smtp2.rz.uni-karlsruhe.de [129.13.185.218]) by postgresql.org (Postfix) with ESMTP id 2F55C9FA4EE for ; Fri, 29 Sep 2006 01:49:20 -0300 (ADT) Received: from rzstud2.stud.uni-karlsruhe.de (exim@rzstud2.stud.uni-karlsruhe.de [193.196.41.38]) by smtp2.rz.uni-karlsruhe.de with esmtp (Exim 4.50 #1) id 1GTAJL-0008UI-At; Fri, 29 Sep 2006 06:49:19 +0200 Received: from uwi7 by rzstud2.stud.uni-karlsruhe.de with local (Exim 4.43) id 1GTAJL-000717-5U for pgsql-docs@postgresql.org; Fri, 29 Sep 2006 06:49:19 +0200 From: Andreas Seltenreich To: pgsql-docs@postgresql.org Subject: bug in psql-ref X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-, PnG. Et.Yh MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.686 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200609/34 X-Sequence-Number: 3721 --=-=-= While testing the texinfo target, I noticed the following bug in the psql reference. Declaring a printed character as part of the control sequence is likely to confuse readline about what is on the screen, causing unreliable line editing. Patch attached. regards, andreas --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=psql-ref.diff Index: doc/src/sgml/ref/psql-ref.sgml =================================================================== RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v retrieving revision 1.169 diff -u -r1.169 psql-ref.sgml --- doc/src/sgml/ref/psql-ref.sgml 16 Sep 2006 00:30:19 -0000 1.169 +++ doc/src/sgml/ref/psql-ref.sgml 29 Sep 2006 04:27:42 -0000 @@ -2491,7 +2491,7 @@ %]. Multiple pairs of these may occur within the prompt. For example, -testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%#%] ' +testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# ' results in a boldfaced (1;) yellow-on-black (33;40) prompt on VT100-compatible, color-capable --=-=-=--