Native shebang: Difference between revisions

Content added Content deleted
No edit summary
Line 443: Line 443:
=={{header|Ruby}}==
=={{header|Ruby}}==
Ruby does not compile to a binary, thankfully.
Ruby does not compile to a binary, thankfully.

=={{header|Swift}}==
Using Swift REPL:

'''File: echo.swift'''
<lang swift>#!/usr/bin/swift

import Foundation

print(Process.arguments[1..<Process.arguments.count].joinWithSeparator(" "))
</lang>

'''Usage:'''

<lang bash>
./echo.swift Hello, world!
</lang>

{{Out}}

<pre>
Hello, world!
</pre>