简体   繁体   English

java linux terminal -cp auto-complete

[英]java linux terminal -cp auto-complete

I'm working with a java library which needs two files 'library.jar' and 'library-extensions.jar'. 我正在使用一个需要两个文件'library.jar'和'library-extensions.jar'的java库。 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. 每当我尝试用冒号(例如-cp“library.jar:library-extensions.jar”)包含它们并尝试在第二个jar文件上使用auto-complete时,它会将第一个参数替换为第二个jar文件。

ie

I have something like this: 我有这样的事情:

java -cp "library.jar:l

I press 'Tab' to auto-complete the second argument and it changes to: 我按'Tab'自动完成第二个参数,它变为:

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. 我在Ubuntu 14.04上使用终端。

You are using double quotes (") which is causing you problem. 您正在使用双引号(“),这会导致您出现问题。

Remove double quotes & auto-complete will work easily :) 删除双引号和自动完成将很容易:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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