File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ echo " fun foo() = 42" > ~ /.kscript_home_include.kts
2+
3+ echo '
4+ //INCLUDE ~/.kscript_home_include.kts
5+ println(foo())
6+ ' > home_dir_master.kts
7+
8+ kscript home_dir_master.kts
Original file line number Diff line number Diff line change @@ -245,10 +245,14 @@ assert 'kscript "println(args.size)" "--params foo"' 1 ## make sure dash args a
245245assert ' kscript "println(args.size)" "foo bar"' 1 # # allow for spaces
246246assert ' kscript "println(args[0])" "foo bar"' " foo bar" # # make sure quotes are not propagated into args
247247
248- # # prevent regression of 181
248+ # # prevent regression of # 181
249249assert ' echo "println(123)" > 123foo.kts; kscript 123foo.kts' " 123"
250250
251251
252+ # # prevent regression of #185
253+ assert " source ${KSCRIPT_HOME} /test/resources/home_dir_include.sh" " 42"
254+
255+
252256kscript_nocall () { kotlin -classpath ${KSCRIPT_HOME} /build/libs/kscript.jar kscript.app.KscriptKt " $@ " ; }
253257export -f kscript_nocall
254258
You can’t perform that action at this time.
0 commit comments