简体   繁体   中英

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. Is it in file ash.c? I just found that '\\t' was treated as ' '. 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:

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

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