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

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Francisco Olarte <folarte(at)peoplecall(dot)com>
Cc: Andrew Pennebaker <andrew(dot)pennebaker(at)gmail(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Petition: Treat #!... shebangs as comments
Date: 2014-07-18 19:23:01
Message-ID: CAHyXU0xOLoB34_GDe9N5p0NYo5mxaoxGMyOR-+dsYqcLNnnKXA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 18, 2014 at 10:51 AM, Francisco Olarte
<folarte(at)peoplecall(dot)com> wrote:
> Hi:
>
> On Fri, Jul 18, 2014 at 5:16 PM, Andrew Pennebaker
> <andrew(dot)pennebaker(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ferrell, Denise CTR NSWCDD, Z11 2014-07-18 19:25:54 Re: [ADMIN] Editable Views
Previous Message Matheus de Oliveira 2014-07-18 19:21:40 Re: [ADMIN] Editable Views