Multiline shebang: Difference between revisions

Added FreeBASIC
m (→‎{{header|Wren}}: Minor tidy)
(Added FreeBASIC)
Line 169:
.( hello world) CR BYE
</syntaxhighlight>
 
=={{header|FreeBASIC}}==
FreeBASIC is a compiled, uninterpreted language, so it cannot be run directly from the Unix command line with a shebang.
 
However, you can create a shell script that compiles and runs your FreeBASIC program. Here I show an example:
 
<syntaxhighlight lang="vbnet">
#!/bin/bash
# Compile the FreeBASIC program
fbc myprogram.bas
# Run the compiled program
./myprogram
</syntaxhighlight>
 
In this script, myprogram.bas is a FreeBASIC program. When you run this shell script, it will compile the FreeBASIC program and then run it.
 
=={{header|Go}}==
2,122

edits