public inbox for [email protected]
help / color / mirror / Atom feedFrom: Simon Riggs <[email protected]>
To: [email protected]
Subject: psql man page error?
Date: Tue, 05 Dec 2006 11:57:06 +0000
Message-ID: <[email protected]> (raw)
On the psql man page there is an example of how to perform multiple line
psql script as part of the -c option description.
The example given is
echo "\x \\ select * from foo;" | psql
which gives
prompt> echo "\x \\ select * from foo;" | psql
Expanded display is on.
invalid command \
i.e. doesn't work on bash. With bash the command should be:
echo -e "\x \n select * from foo;" | psql
which gives
prompt> echo -e "\x \n select * from foo;" | psql
Expanded display is on.
ERROR: relation "foo" does not exist
Does this mean there are multiple forms of the echo command, or is this
example just wrong?
--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com
view thread (17+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: psql man page error?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox