Native shebang: Difference between revisions

m
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 555:
 
'''Usage:'''
<pre>./echo.langur hello, peeps!people</pre>
 
{{out}}
<pre>hello, peeps!people</pre>
 
=={{header|Nim}}==
Line 918:
=={{header|Wren}}==
Normally, Process.arguments[0] would return the (first) command line argument but here we need to use Process.arguments[1] because the first argument passed to Wren's command line interpreter is ''./native_shebang.wren''.
<syntaxhighlight lang="ecmascriptwren">#!/bin/wren native_shebang.wren
import "os" for Process
System.print(Process.arguments[1])</syntaxhighlight>
885

edits