Re: Petition: Treat #!... shebangs as comments
От
Francisco Olarte
Тема
Re: Petition: Treat #!... shebangs as comments
Дата
Msg-id
CA+bJJbxqQunea6OEZj3GyaBidpyDaSk-9nKSvOj4uFDJ9PFnUQ@mail.gmail.com
Ответ на
Petition: Treat #!... shebangs as comments (Andrew Pennebaker)
Список
Дерево обсуждения
Petition: Treat #!... shebangs as comments Andrew Pennebaker <andrew.pennebaker@gmail.com>
Re: Petition: Treat #!... shebangs as comments Adrian Klaver <adrian.klaver@aklaver.com>
Re: Petition: Treat #!... shebangs as comments Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: Petition: Treat #!... shebangs as comments Adrian Klaver <adrian.klaver@aklaver.com>
Re: Petition: Treat #!... shebangs as comments Martin Gudmundsson <martingudmundsson@gmail.com>
Re: Petition: Treat #!... shebangs as comments Frank Pinto <frank@ayalo.co>
Re: Petition: Treat #!... shebangs as comments David G Johnston <david.g.johnston@gmail.com>
Re: Petition: Treat #!... shebangs as comments Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: Petition: Treat #!... shebangs as comments Tom Lane <tgl@sss.pgh.pa.us>
Re: Petition: Treat #!... shebangs as comments Merlin Moncure <mmoncure@gmail.com>
Re: Petition: Treat #!... shebangs as comments Tom Lane <tgl@sss.pgh.pa.us>
Re: Petition: Treat #!... shebangs as comments John Cochran <j69cochran@gmail.com>
Re: Petition: Treat #!... shebangs as comments Francisco Olarte <folarte@peoplecall.com>
Re: Petition: Treat #!... shebangs as comments Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: Petition: Treat #!... shebangs as comments Francisco Olarte <folarte@peoplecall.com>
Re: Petition: Treat #!... shebangs as comments Merlin Moncure <mmoncure@gmail.com>
Re: Petition: Treat #!... shebangs as comments Francisco Olarte <folarte@peoplecall.com>
Re: Petition: Treat #!... shebangs as comments Dennis Jenkins <dennis.jenkins.75@gmail.com>
Re: Petition: Treat #!... shebangs as comments Martin Gudmundsson <martingudmundsson@gmail.com>
Re: Petition: Treat #!... shebangs as comments Andrew Pennebaker <andrew.pennebaker@gmail.com>
Re: Petition: Treat #!... shebangs as comments Francisco Olarte <folarte@peoplecall.com>
Re: Petition: Treat #!... shebangs as comments John McKown <john.archie.mckown@gmail.com>
Re: Petition: Treat #!... shebangs as comments Francisco Olarte <folarte@peoplecall.com>
Hi: On Fri, Jul 18, 2014 at 5:16 PM, Andrew Pennebaker wrote: > Could we please have the PostgreSQL lexer treat #!... on the first line of a > file as a comment? This would enable .psql scripts to be run with dot-slash > notation preferred by many unix users: > > ./script.psql Dot-slash is not a notation, it's a requisite if you do ( correctly ) not have . in your $PATH. Anyway, this is a little bit complex, as psql many times needs arguments. It's been pointed it can be done with a shell script. If you can live with a little noise you can have it dual ( The \r makes it ignore the previous lines, the \q makes it exit before reading the EOF line ): ~/tmp $ cat kk.sql #!/bin/bash psql service=redacted <
В списке pgsql-general по дате отправления