简体   繁体   English

谁能告诉我Busybox如何实现自动完成

[英]who can tell me how Busybox achieve auto-completion

I have read the source code of Busybox for two days, but i can't find the code that achieve auto-completion. 我已经阅读了两天的Busybox的源代码,但是找不到实现自动完成的代码。 Is it in file ash.c? 它在文件ash.c中吗? I just found that '\\t' was treated as ' '. 我只是发现'\\ t'被视为''。 Who can tell me which part of codes achieving auto-completion. 谁能告诉我代码的哪一部分实现了自动补全。

This function in lineedit.c , unsigned complete_cmd_dir_file , is what you're looking for I believe: 我相信您正在寻找lineedit.c此函数( unsigned complete_cmd_dir_file

https://git.busybox.net/busybox/tree/libbb/lineedit.c#n778 https://git.busybox.net/busybox/tree/libbb/lineedit.c#n778

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

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