목차

JShell

shebang

# 이 내용을 jshell-wrapper로 저장하고 #!/path/to/jshell-wrapper 로 shebang 지정
TMP=`mktemp`
tail -n +2 $@ >> $TMP
echo "/exit" >> $TMP
#$JAVA_HOME/bin/jshell -q --execution local $TMP
/usr/bin/env jshell -q --execution local $TMP
rm $TMP
 
#put this file in /usr/local/bin/ or somewhere in your $PATH

참조