Create an executable for a program in an interpreted language: Difference between revisions

→‎{{header|jq}}: whoops - out of order
(→‎{{header|jq}}: whoops - out of order)
Tag: Manual revert
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}}==
2,442

edits