<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell, branch tab_completion</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=tab_completion</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=tab_completion'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-04-13T07:47:36+00:00</updated>
<entry>
<title>hush: code shrink</title>
<updated>2023-04-13T07:47:36+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-13T07:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5b309426f3a2f4f9dfda29021e45a775a4995003'/>
<id>urn:sha1:5b309426f3a2f4f9dfda29021e45a775a4995003</id>
<content type='text'>
Handle both arrays of builtin as the same type.

function                                             old     new   delta
ash_command_name                                       -     154    +154
hush_command_name                                      -      97     +97
complete_cmd_dir_file                                876     880      +4
ash_builtin_name                                      17       -     -17
hush_builtin_name                                     38       -     -38
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/0 up/down: 255/-55)           Total: 200 bytes

In the case where ash is disabled and hush is enabled but with support
for functions disabled this reduces the bloat from 31 to 6 bytes.

(GitHub issue #301)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>ash: fix tab completion</title>
<updated>2023-04-11T12:27:24+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-11T12:22:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=36450cffc837bf934f875643bf5faca69599d8fe'/>
<id>urn:sha1:36450cffc837bf934f875643bf5faca69599d8fe</id>
<content type='text'>
The initial index for the command and alias tables was incorrect.

Change since 3165054d2:

function                                             old     new   delta
ash_command_name                                       -     155    +155
hush_command_name                                      -     110    +110
complete_cmd_dir_file                                876     880      +4
ash_builtin_name                                      17       -     -17
hush_builtin_name                                     38       -     -38
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/0 up/down: 269/-55)           Total: 214 bytes

(GitHub commit #301)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: improvements to tab completion</title>
<updated>2023-04-11T12:03:15+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-11T10:35:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3ea59e15db1edc319a56495021b3d1e58dd49f30'/>
<id>urn:sha1:3ea59e15db1edc319a56495021b3d1e58dd49f30</id>
<content type='text'>
Cosmetic changes.

Avoid accessing beyond the end of the command and alias arrays in ash.

Code shrink.  Change since commit 3165054d2:

function                                             old     new   delta
ash_command_name                                       -     153    +153
hush_command_name                                      -     110    +110
complete_cmd_dir_file                                876     880      +4
ash_builtin_name                                      17       -     -17
hush_builtin_name                                     38       -     -38
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/0 up/down: 267/-55)           Total: 212 bytes

(GitHub issue #301)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: tab completion of functions and aliases</title>
<updated>2023-04-10T10:45:46+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-10T09:20:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=66c9b8f39acbba587eda0cababa3de37e89b8dff'/>
<id>urn:sha1:66c9b8f39acbba587eda0cababa3de37e89b8dff</id>
<content type='text'>
Rework the 'get_exe_name' functions in ash and hush so functions
and aliases are considered when tab-completing a command.

function                                             old     new   delta
ash_command_name                                       -     188    +188
hush_command_name                                      -     118    +118
complete_cmd_dir_file                                876     880      +4
ash_builtin_name                                      17       -     -17
hush_builtin_name                                     38       -     -38
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/0 up/down: 310/-55)           Total: 255 bytes

(GitHub issue #301)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: rename get_builtin_name</title>
<updated>2023-04-10T10:45:42+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-10T08:56:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3165054d234e0f37f1a230312f1fd2ab3677bbc0'/>
<id>urn:sha1:3165054d234e0f37f1a230312f1fd2ab3677bbc0</id>
<content type='text'>
Rename get_builtin_name() in ash and hush to avoid confusing
bloatcheck.  No functional changes.

(GitHub issue #301)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>ash: code shrink: do not take address of prefix(), allowing it to inline</title>
<updated>2023-04-03T15:30:03+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-03T15:30:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=46e92e1e568021ecdfa30bfea0efabe72b85633b'/>
<id>urn:sha1:46e92e1e568021ecdfa30bfea0efabe72b85633b</id>
<content type='text'>
function                                             old     new   delta
getjob                                               281     285      +4
prefix                                                13       -     -13
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 4/-13)              Total: -9 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: code shrink - reuse is_prefixed_with() from libbb</title>
<updated>2023-04-03T13:19:13+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-03T13:19:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a33d19eba8c614d113378ed07bbec0ce06227028'/>
<id>urn:sha1:a33d19eba8c614d113378ed07bbec0ce06227028</id>
<content type='text'>
function                                             old     new   delta
changepath                                            67      68      +1
legal_pathopt                                         70      66      -4
prefix                                                34      13     -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-25)             Total: -24 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: get rid of separate mail_var_path_changed flag variable</title>
<updated>2023-04-03T13:01:00+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-03T13:01:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=94780e3e8e926e7e9f384c4b70310b3e7e79abce'/>
<id>urn:sha1:94780e3e8e926e7e9f384c4b70310b3e7e79abce</id>
<content type='text'>
We can just clear mailtime_hash to zero and have the same effect.

function                                             old     new   delta
changemail                                             8      11      +3
mail_var_path_changed                                  1       -      -1
cmdloop                                              398     382     -16
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 3/-17)             Total: -14 bytes
   text	   data	    bss	    dec	    hex	filename
1054786	    559	   5020	1060365	 102e0d	busybox_old
1054773	    559	   5020	1060352	 102e00	busybox_unstripped

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix still-broken new mail detection</title>
<updated>2023-04-03T12:41:01+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-03T12:31:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7ababc3e3cd44cb51ad1b0183f7fe30df0fb3cbf'/>
<id>urn:sha1:7ababc3e3cd44cb51ad1b0183f7fe30df0fb3cbf</id>
<content type='text'>
padvance() exit condition is return value &lt; 0, not == 0.
After MAIL changing twice, the logic erroneously
concluded that "you have new mail".

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix broken new mail detection</title>
<updated>2023-04-03T12:01:36+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-03T12:01:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2860b2530e7391b52fc6f0d500981e78a4618551'/>
<id>urn:sha1:2860b2530e7391b52fc6f0d500981e78a4618551</id>
<content type='text'>
Mea culpa, in "Do not allocate stack string in padvance" commit
(I left an extraneous "break" statement).

function                                             old     new   delta
cmdloop                                              329     398     +69

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
