From: | Francisco Olarte <folarte(at)peoplecall(dot)com> |
---|---|
To: | Andrew Pennebaker <andrew(dot)pennebaker(at)gmail(dot)com> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Petition: Treat #!... shebangs as comments |
Date: | 2014-07-20 17:22:16 |
Message-ID: | CA+bJJbxzq_Ayt5kgzc--8Zs7Ac53c0P6wZGNfq3y0C03+xPKhw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Andrew...
On Fri, Jul 18, 2014 at 9:37 PM, Andrew Pennebaker
<andrew(dot)pennebaker(at)gmail(dot)com> 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Francisco Olarte | 2014-07-20 17:29:16 | Re: Petition: Treat #!... shebangs as comments |
Previous Message | Francisco Olarte | 2014-07-20 17:13:25 | Re: Petition: Treat #!... shebangs as comments |