Re: psql man page error?
От | Simon Riggs |
---|---|
Тема | Re: psql man page error? |
Дата | |
Msg-id | 1165348675.3839.220.camel@silverbirch.site обсуждение исходный текст |
Ответ на | Re: psql man page error? (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | 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 по дате отправления: