Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B298C9FA4CB for ; Tue, 5 Dec 2006 14:14:57 -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 51892-07 for ; Tue, 5 Dec 2006 14:14:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D26509FA38F for ; Tue, 5 Dec 2006 14:14:50 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kB5IEklv008129; Tue, 5 Dec 2006 13:14:46 -0500 (EST) To: Bruce Momjian cc: Simon Riggs , pgsql-docs@postgresql.org Subject: Re: psql man page error? In-reply-to: <200612051741.kB5Hf0x06888@momjian.us> References: <200612051741.kB5Hf0x06888@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 05 Dec 2006 12:41:00 -0500" Date: Tue, 05 Dec 2006 13:14:45 -0500 Message-ID: <8124.1165342485@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/8 X-Sequence-Number: 3931 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. regards, tom lane