classpath

Peter Levart peter.levart at gmail.com
Sun Feb 12 21:09:53 UTC 2017



On 02/12/2017 09:57 PM, Peter Levart wrote:
> Should jshell treat and expand /env arguments according to the rules 
> of native shells on the corresponding platforms? For example, should 
> it expand %VARIABLE% on Windows and ${VARIABLE} or $VARIABLE on UNIX-es ?

No, perhaps not. But it would perhaps be nice to have some kind of 
platform-independet way to expand either current Java system properties 
or process environment variables (or both) in arguments of jshell's 
slash-commands. So one could do for example:

jshell> /env --class-path {user.home}/JavaLibs/guava-21.0.jar
|  Setting new options and restoring state.

jshell> /env
|     --class-path /home/peter/JavaLibs/guava-21.0.jar



Regards, Peter



More information about the kulla-dev mailing list