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

From Martin Gudmundsson
Subject Re: Petition: Treat #!... shebangs as comments
Date
Msg-id 79F57742-E7C0-4047-924C-F57CF5014E3D@gmail.com
Whole thread Raw
In response to Re: Petition: Treat #!... shebangs as comments  (Dennis Jenkins <dennis.jenkins.75@gmail.com>)
Responses Re: Petition: Treat #!... shebangs as comments  (Andrew Pennebaker <andrew.pennebaker@gmail.com>)
List pgsql-general

18 jul 2014 kl. 17:31 skrev Dennis Jenkins <dennis.jenkins.75@gmail.com>:

On Fri, Jul 18, 2014 at 10:16 AM, 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

While still allowing the traditional (and Windows compatible) style:

psql -f script.psql


+1

+1, Sounds great!
Even though you can accomplish most things in other ways, this seems like the easiest in many scenarios.


pgsql-general by date:

Previous
From: "Ferrell, Denise CTR NSWCDD, Z11"
Date:
Subject: Re: [ADMIN] Editable Views
Next
From: Andrew Pennebaker
Date:
Subject: Re: Petition: Treat #!... shebangs as comments