Created
September 8, 2011 20:41
-
-
Save killerswan/1204623 to your computer and use it in GitHub Desktop.
run fsharp/F# in Cygwin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
FSI="/cygdrive/c/fsharp/FSharp-2.0.0.0/bin/fsi.exe" | |
FLAGS="--nologo" | |
if [[ $# -eq 0 ]] | |
then | |
exec "$FSI" "$FLAGS" | |
elif [[ $# -eq 1 && -r "$1" ]] | |
then | |
exec "$FSI" "$FLAGS" "$(cygpath -w "$1")" | |
# possibly: replace every valid UNIX file path with a Windows one | |
# leaving other arguments untouched | |
else | |
echo "Usage: runfsi SOURCEFILE" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment