Skip to content

Commit 6d65f45

Browse files
committed
added cygwin usage doc
1 parent 877a58f commit 6d65f45

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ By means of the `//ENTRY` directive, `kscript` can be used a application launche
233233
println("Hello from Kotlin with 5g of heap memory running in server mode!")
234234
```
235235

236+
## Why does it fail to read my script file when using cygwin?
237+
238+
In order to use cygwin you need to use windows paths to provide your scripts. You can map cygwin paths using `cygpath`. Example
239+
```bash
240+
kscript $(cygpath -w /cygdrive/z/some/path/my_script.kt)
241+
```
236242

237243
Support
238244
-------

notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11

22

3+
## launcher
4+
5+
https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
6+
37

48
## dependency declarations
59

test/TestsReadme.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ To run the tests, just run the [`test_suite.sh`](test_suite.sh)
2020
#git clone https://github.com/holgerbrandl/kscript ; export KSCRIPT_HOME=$(pwd)/kscript
2121

2222
export KSCRIPT_HOME="/Users/brandl/projects/kotlin/kscript"
23+
#export KSCRIPT_HOME="/cygdrive/z/kscript"
2324
## change into this/test directory
2425

2526
## make sure to use devel-version
@@ -41,13 +42,13 @@ kscript --clear-cache
4142

4243
${KSCRIPT_HOME}/test/test_suite.sh
4344

44-
# run again with kotlin 1.0.X
45-
sdk use kotlin 1.0.6
46-
kscript --clear-cache
47-
./test/test_suite.sh
48-
45+
# # run again with kotlin 1.0.X
46+
# sdk use kotlin 1.0.6
47+
# kscript --clear-cache
48+
# ./test/test_suite.sh
4949
```
5050

51+
## Remove kscript from path
5152
export PATH=`echo ${PATH} | awk -v RS=: -v ORS=: '/kscript/ {next} {print}'`
5253

5354

0 commit comments

Comments
 (0)