简体   繁体   中英

java linux terminal -cp auto-complete

I'm working with a java library which needs two files 'library.jar' and 'library-extensions.jar'. Whenever I try to include both of them separated by a colon (eg -cp "library.jar:library-extensions.jar") and try to use auto-complete on the second jar file, it substitutes the first argument for the second one.

ie

I have something like this:

java -cp "library.jar:l

I press 'Tab' to auto-complete the second argument and it changes to:

java -cp "l

Is there anything I can do to enable proper auto-complete on additional arguments?

I'm using terminal on Ubuntu 14.04.

You are using double quotes (") which is causing you problem.

Remove double quotes & auto-complete will work easily :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM