skip shebang in the first line

Something like this works now:

===
% PATH="./bin:$PATH" ./sum.ktscript 31 21
31 + 21 = 52

% cat sum.ktscript
#!/usr/bin/env kotlin -script

val a = Integer.parseInt(args[0])
val b = Integer.parseInt(args[1])
println("$a + $b = ${a + b}")
===
This commit is contained in:
Stepan Koltsov
2012-05-28 22:59:03 +04:00
parent 7f53b2f111
commit 25f71bcd3a
10 changed files with 623 additions and 481 deletions
+3
View File
@@ -24,7 +24,10 @@
jvmargs="-Xmx512M"
fork="true"
failonerror="true">
<arg value="-charat"/>
<!-- generates invalid code when %line option is on
<arg value="-sliceandcharat"/>
-->
<arg value="-skel"/>
<arg value="@{skeleton}"/>
<arg value="-d"/>