Re: psql man page error? - Mailing list pgsql-docs

From Simon Riggs
Subject Re: psql man page error?
Date
Msg-id 1165348675.3839.220.camel@silverbirch.site
Whole thread Raw
In response to Re: psql man page error?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
On Tue, 2006-12-05 at 13:14 -0500, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I think the proper fix is:
>
> >       <application>psql</application>, like this: <literal>echo -e
> >       "\\x\nSELECT * FROM foo;" | psql</literal>.
>
> > 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



pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql man page error?
Next
From: Bruce Momjian
Date:
Subject: Re: psql man page error?