Roberto Franchini [email protected] [it-torino-java-jug] ha scritto 
il 17/11/2017 alle 09:00:
> Se ne parlava mercoledi' sera al meeting:
> 
> https://medium.com/oracledevs/jshell-a-quick-look-d26f7e91a864
> 
> 
> FRANK
> 

Mi è venuto in mente di fare uno script "shell" ma usando "jshell". 
Purtroppo non funziona: non riconosce il cancelletto come riga 
commentata e non termina alla fine dello script
Magari si può fare un wrapperino

federico@pawa:~$ cat test.sh
#!/usr/bin/env /opt/jvm/jdk1.9.0/bin/jshell

System.out.println("hello world!")

federico@pawa:~$ ./test.sh
|  Error:
|  illegal character: '#'
|  #!/usr/bin/env /opt/jvm/jdk1.9.0/bin/jshell
|  ^
|  Error:
|  illegal start of expression
|  #!/usr/bin/env /opt/jvm/jdk1.9.0/bin/jshell
|    ^
hello world!
|  Welcome to JShell -- Version 9
|  For an introduction type: /help intro

jshell>


federico

Reply via email to