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:56, 18 September 2022
, 1 year ago→{{header|jq}}
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 349:
remove( "/tmp/t" );
}</syntaxhighlight>
=={{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|J}}==
|