Received: from chaos.localnet.unwireduniverse.com (h0080ad81a8d6.ne.mediaone.net [24.128.16.163]) by postgresql.org (Postfix) with ESMTP id 98565474E44 for ; Mon, 25 Feb 2002 22:34:33 -0500 (EST) Received: from random.localnet.UnwiredUniverse.com (IDENT:smmsp@random.localnet.UnwiredUniverse.com [192.168.1.9]) by chaos.localnet.unwireduniverse.com (8.12.1/8.12.1) with ESMTP id g1Q3YK6S000845; Mon, 25 Feb 2002 22:34:20 -0500 Received: (from derrell@localhost) by random.localnet.UnwiredUniverse.com (8.12.1/8.12.1/Submit) id g1Q3YJaf018197; Mon, 25 Feb 2002 22:34:19 -0500 X-Authentication-Warning: random.localnet.UnwiredUniverse.com: derrell set sender to Derrell.Lipman@UnwiredUniverse.com using -f To: Bruce Momjian Cc: pgsql-docs@postgresql.org Subject: Re: "man psql" \set documentation error References: <200202181742.g1IHg1x02806@candle.pha.pa.us> From: Derrell.Lipman@UnwiredUniverse.com Reply-To: Derrell.Lipman@UnwiredUniverse.com Date: Mon, 25 Feb 2002 22:34:18 -0500 In-Reply-To: <200202181742.g1IHg1x02806@candle.pha.pa.us> (Bruce Momjian's message of "Mon, 18 Feb 2002 12:42:01 -0500 (EST)") Message-ID: Lines: 34 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Civil Service, i686-pc-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200202/48 X-Sequence-Number: 1277 Bruce Momjian writes: > Derrell.Lipman@UnwiredUniverse.com wrote: >> Running an application and \set'ing its output in a variable requires use of >> the backtick '`' operator. Under the heading "SQL INTERPOLATION", the >> examples should be as follows (the difference being use of backticks instead >> of single quotes around the command to be executed): >> >> Current (wrong): >> testdb=> \set content '\'' 'cat my_file.txt' '\'' >> >> Correct: >> testdb=> \set content '\'' `cat my_file.txt` '\'' >> >> >> >> Current (wrong): >> testdb=> \set content 'sed -e "s/'/\\\\\\'/g" < my_file.txt' >> >> Correct: >> testdb=> \set content `sed -e "s/'/\\\\\\'/g" < my_file.txt` >> > > I just checked and it looks fine in current sources. Does it look right > in your browser: > > http://candle.pha.pa.us/main/writings/pgsql/sgml/app-psql.html Yes, it looks correct in that html version; it just has the wrong character in the nroff "man" version. Cheers, Derrell