Scala ãã³ãã³ãã©ã¤ã³ã§ä½¿ã - 1
ã¡ãã£ã¨åã« Haskell ãæ¸ãã¦ãã¦ï¼éççä»ã楽ã ãªã¼ï¼
ã¨æã£ã¦ããã¨ããã§ï¼Scala 座ãããã®ã§ï¼Scala ã
ã³ãã³ãã©ã¤ã³ã«ä½¿ããªãããªï¼ã¨æã£ã¦è©¦è¡é¯èª¤ãã次第ï¼
ããããã®ã .zshrc ã«ä»è¾¼ãã¨ï¼
# æ®éã® cat $ scall .zshrc | diff - .zshrc; echo $? 0 # cat -n ç㪠$ (echo a; echo b; echo c) | scall -B 'var i=1' -e 'l=>{println(i+" "+l);i+=1}' -E 'println("line count = " + i)' 1 a 2 b 3 c line count = 4
以ä¸è£è¶³
Mac ã ã¨ï¼-Dfile.encoding=UTF-8 ããªãããªããªãã®ã§ï¼
$HOME/local/bin/java
#!/bin/sh exec /usr/bin/java -Dfile.encoding=UTF-8 "$@"
ãªããã¡ã¤ã«ãç½®ãã¦ï¼
# .zshrc ã®ã©ããã« export JAVACMD=$HOME/local/bin/java
ãã¦ã¿ãï¼
_JAVA_OPTIONS ç°å¢å¤æ°ãæå®ããã°ï¼ä¸å¿åãã®ã ãï¼
$ env _JAVA_OPTIONS=-Dfile.encoding=UTF-8 /usr/bin/javac -help 2>&1 | head -2 Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8 使ãæ¹: javac <options> <source files>
ãããªæãã§ï¼Picked up _JAVA_OPTIONS: ã¨ããã¡ãã»ã¼ã¸ã表示ãããã®ããã¾ããªãï¼
åè