Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BD5A09FA0EE for ; Wed, 6 Dec 2006 10:14:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 25145-09 for ; Wed, 6 Dec 2006 10:14:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id F09199F9C9E for ; Wed, 6 Dec 2006 10:14:10 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id kB6EE1522072; Wed, 6 Dec 2006 09:14:01 -0500 (EST) From: Bruce Momjian Message-Id: <200612061414.kB6EE1522072@momjian.us> Subject: Re: psql man page error? In-Reply-To: <18479.1165382726@sss.pgh.pa.us> To: Tom Lane Date: Wed, 6 Dec 2006 09:14:01 -0500 (EST) CC: Simon Riggs , pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/18 X-Sequence-Number: 3941 Tom Lane wrote: > Bruce Momjian writes: > > Well, it is even worse because some versions of echo automatically > > interpret backslashes, so it would have to be \\x. I am thinking we > > should just leave it as I have it now, unless we want to use 'awk' or > > 'perl' where we know the backslash behavior. > > The example as you have it now is directly contradictory to the > published spec. > > I agree with Simon's suggestion to remove "-e" from the example > (thereby making it spec-compliant) and add a parenthetical remark > suggesting that standards-challenged versions of echo might need "-e". Well, I just tried Linux and FreeBSD bash (the default shell?) and they both need '-e' to render '\n' as a newline, so I think we should just leave it with '-e'. Following the spec doesn't help if our two major operating systems don't follow the spec, plus the example doesn't work on Win32 at all. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +