[PATCH] ash: perform autocompletion on builtin commands

Matteo Croce matteo at openwrt.org
Fri Oct 24 15:44:01 UTC 2014


it should be implemented in lineedit.c, by replacing ~ to /home/whatever

2014-10-24 17:20 GMT+02:00 John Spencer <maillist-busybox at barfooze.de>:
> Matteo Croce wrote:
>>
>> Refactor read_line_input to accept a list of strings which are
>> added byt the autocompletion suggestions.
>> Let ash pass the builtin command list to read_line_input to enable
>> completion of builtin commands as echo, printf, history, exec, etc.
>
>
> nice. could this mechanism be used to expand ~ to the contents of $HOME
> for autocompletion ? lack of this expansion is currently my major annoyance
> with ash and the reason i still use bash...



-- 
Matteo Croce
OpenWrt Developer
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------


More information about the busybox mailing list