Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id AD0469FB2A2 for ; Tue, 5 Dec 2006 15:58:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 68821-03 for ; Tue, 5 Dec 2006 15:58:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id D368D9F9386 for ; Tue, 5 Dec 2006 15:58:11 -0400 (AST) thread-index: AccYp7NBVFzaCZczTz2HKm3RdCaU/g== Received: from [192.168.0.20] ([62.232.55.118]) by mail01.enterprisedb.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Dec 2006 14:58:12 -0500 Subject: Re: psql man page error? Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 From: "Simon Riggs" To: "Tom Lane" Cc: "Bruce Momjian" , In-Reply-To: <8124.1165342485@sss.pgh.pa.us> References: <200612051741.kB5Hf0x06888@momjian.us> <8124.1165342485@sss.pgh.pa.us> Content-Type: text/plain; charset="iso-8859-1" Date: Tue, 05 Dec 2006 19:57:55 +0000 Message-ID: <1165348675.3839.220.camel@silverbirch.site> MIME-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Dec 2006 19:58:12.0937 (UTC) FILETIME=[B2105B90:01C718A7] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/9 X-Sequence-Number: 3932 On Tue, 2006-12-05 at 13:14 -0500, Tom Lane wrote: > Bruce Momjian writes: > > I think the proper fix is: > > > psql, like this: echo -e > > "\\x\nSELECT * FROM foo;" | psql. > > > I think all modern operating systems understand echo -e at this point. > > No, they don't, and neither does the Single Unix Spec: > http://www.opengroup.org/onlinepubs/007908799/xcu/echo.html > > So your version of the example depends on non-standards-compliant > echo behavior, which is not better than before. So the -e is wrong, but the rest of the change was right. Guess we just need to add a comment about "(you may need to use the -e option on echo to get this to work on your OS)." -- Simon Riggs EnterpriseDB http://www.enterprisedb.com