Re: Petition: Treat #!... shebangs as comments - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Petition: Treat #!... shebangs as comments
Date
Msg-id CAHyXU0xOLoB34_GDe9N5p0NYo5mxaoxGMyOR-+dsYqcLNnnKXA@mail.gmail.com
Whole thread Raw
In response to Re: Petition: Treat #!... shebangs as comments  (Francisco Olarte <folarte@peoplecall.com>)
Responses Re: Petition: Treat #!... shebangs as comments  (Francisco Olarte <folarte@peoplecall.com>)
List 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 by date:

Previous
From: Matheus de Oliveira
Date:
Subject: Re: [ADMIN] Editable Views
Next
From: "Ferrell, Denise CTR NSWCDD, Z11"
Date:
Subject: Re: [ADMIN] Editable Views