Hi,

Ludovic Courtès <l...@gnu.org> writes:
>> I have just one quick question regarding `gexp->script' and
>> `program-file' procedures: why is the `--no-auto-compile' flag added to
>> the shebangs of produced files?
>
> That’s primarily because auto-compilation would print messages the first
> time you run these programs, or even every time if there’s no place to
> write .go files to.
>
> The idea is also that ‘program-file’ & co. are meant for small programs,
> where compilation doesn’t matter much.

Thank you for your answer; it makes sense.


The current documentation of `gexp->script' (provided below) seems out
of sync.  I will try to propose a patch for it, to include the current
shebang produced by the procedure this week-end.

--8<---------------cut here---------------start------------->8---
     When “running” it through the store (*note ‘run-with-store’: The
     Store Monad.), we obtain a derivation that produces an executable
     file ‘/gnu/store/...-list-files’ along these lines:

          #!/gnu/store/...-guile-2.0.11/bin/guile -ds
          !#
          [...]
--8<---------------cut here---------------end--------------->8---


NB: If I read the code correctly, the current shebang is:
--8<---------------cut here---------------start------------->8---
#![path to guile]/bin/guile --no-auto-compile
!#
--8<---------------cut here---------------end--------------->8---

Best,

-- 
Arnaud

Attachment: signature.asc
Description: PGP signature

Reply via email to