🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.caml
Article #95

Support for shebang lines in compiled scripts

#95
From: Andrew Pennebaker
Date: Thu, 06 Dec 2012 16:34
5 lines
1451 bytes
Could the OCaml compiler treat the first line of code files as a comment if they begin #!... ? This would reduce the amount of hackery required in writing Unix scripts:

http://rosettacode.org/wiki/Multiline_shebang#OCaml

For example, it's nice for source code to double as a ./'able shell script and as a compilable program.
Technical Details
Message-ID: <6bb80244-2f7b-4884-a582-32e1b9126084@googlegroups.com>
Path: arc1-ca.pugleaf.net!gf5ni47564750qab.0!nntp.google.com!c8no1672305qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,da01ac6fede19288,start
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.224.207.66 with SMTP id fx2mr1974041qab.7.1354811656678;
        Thu, 06 Dec 2012 08:34:16 -0800 (PST)
Received: by 10.49.18.231 with SMTP id z7mr466993qed.25.1354811656614; Thu, 06
 Dec 2012 08:34:16 -0800 (PST)
Path: arc1-ca.pugleaf.net!gf5ni47564750qab.0!nntp.google.com!c8no1672305qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: fa.caml
Date: Thu, 6 Dec 2012 08:34:16 -0800 (PST)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.183.177.134;
 posting-account=BgX_EAoAAADSgPfCTFtjxjxOSiJcIuzc
NNTP-Posting-Host: 184.183.177.134
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6bb80244-2f7b-4884-a582-32e1b9126084@googlegroups.com>
Subject: Support for shebang lines in compiled scripts
From: Andrew Pennebaker <andrew.pennebaker@gmail.com>
Injection-Date: Thu, 06 Dec 2012 16:34:16 +0000
Content-Type: text/plain; charset=ISO-8859-1