Create an executable for a program in an interpreted language: Difference between revisions
Create an executable for a program in an interpreted language (view source)
Revision as of 06:58, 18 September 2022
, 1 year ago→{{header|jq}}
(→{{header|jq}}: whoops - out of order) Tag: Manual revert |
|||
Line 377:
(The "j engine" is a shared object / dylib / dll / ... the details depend on the host operating system.)
=={{header|jq}}==
This entry confines itself to the task (creating an executable) in computing environments that support the "shebang" technique.
A bash shell, for example, would suffice.
The trick to using jq in the shebang line is NOT to specify an argument for the -f option.
A suitable shebang line for a script that reads from stdin would be:
<pre>
#!/usr/bin/env jq -Mf
</pre>
The file with the shebang line and program must of course be made executable (e.g. by running `chmod +x FILENAME`).
Variations and further details are given in the [https://github.com/stedolan/jq/wiki/FAQq%20FAQ jq FAQ].
=={{header|Phix}}==
|