Re: Petition: Treat #!... shebangs as comments

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Petition: Treat #!... shebangs as comments
Дата
Msg-id CAHyXU0xOLoB34_GDe9N5p0NYo5mxaoxGMyOR-+dsYqcLNnnKXA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Petition: Treat #!... shebangs as comments  (Francisco Olarte <folarte@peoplecall.com>)
Ответы Re: Petition: Treat #!... shebangs as comments  (Francisco Olarte <folarte@peoplecall.com>)
Список pgsql-general
On Fri, Jul 18, 2014 at 10:51 AM, Francisco Olarte
<folarte@peoplecall.com> wrote:
> Hi:
>
> On Fri, Jul 18, 2014 at 5:16 PM, Andrew Pennebaker
> <andrew.pennebaker@gmail.com> 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.

true, but pretty much everything you might need can be handled via the
environment and the script itself.   there are plenty of good reasons
do this and I can't think of any not to.

merlin


В списке pgsql-general по дате отправления:

Предыдущее
От: Matheus de Oliveira
Дата:
Сообщение: Re: [ADMIN] Editable Views
Следующее
От: "Ferrell, Denise CTR NSWCDD, Z11"
Дата:
Сообщение: Re: [ADMIN] Editable Views