Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew...

On Fri, Jul 18, 2014 at 9:37 PM, Andrew Pennebaker
<andrew.pennebaker@xxxxxxxxx> wrote:
> As a workaround, I can use this shebang hack:
... More 'this no shebang hack'.

> But I would prefer to use a traditional (#!/usr/bin/env psql -f) shebang. It
> took a few hours on irc to hack this one together.

I see why. The lack of shebang puzzled me until I did man bash, search
for executable and found this gem " If this execution fails because
the file is not in executable format, and the file is not a directory,
it is assumed to be a shell script, a file containing shell commands.
A subshell is spawned to execute it.". Does this works in other
shells?

Francisco Olarte.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux