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

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Petition: Treat #!... shebangs as comments
Date: 2014-07-18 19:43:42
Message-ID: 20140718194342.GA3259@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 18, 2014 at 10:41:30AM -0700, David G Johnston wrote:

> As an aside - putting an "sql" extension onto a file that uses psql commands
> and features seems wrong...

Weeell, yeah, but, it can make life easier. Take Midnight
Commander for a start -- it recognizes *SQL files by their
.sql extension for syntax highlighting. It doesn't recognize
.psql ones as yet.

Now, of course, I should work on getting mc to

- recognize *SQL files based on content
- recognize .psql files as containing (one "dialect" of) SQL
- fully parse .psql files as "Postgre"-SQL

but until that happens I am quite happy with mc properly
highlighting (most SQL) in my .sql-named psql files ;-)

Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2014-07-18 19:47:32 Re: Petition: Treat #!... shebangs as comments
Previous Message Andrew Pennebaker 2014-07-18 19:37:12 Re: Petition: Treat #!... shebangs as comments