<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/lineedit.c, branch join2</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=join2</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=join2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2026-06-22T10:36:43+00:00</updated>
<entry>
<title>Fix the flags for stat (again) (#601)</title>
<updated>2026-06-22T10:36:43+00:00</updated>
<author>
<name>mbartlett21</name>
<email>29034492+mbartlett21@users.noreply.github.com</email>
</author>
<published>2026-06-22T10:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b37062304275debaadf71c9f3e5f4e9076f5eda6'/>
<id>urn:sha1:b37062304275debaadf71c9f3e5f4e9076f5eda6</id>
<content type='text'>
* Revert "find: reset stat(2) flags before terminating"

This reverts commit 228ee18fbe8cf408440e7bbe91db4ef201312983.

* test: fix flags for stat with NOFORK

test is a NOFORK applet, so the flags under mingw_stat may not have been
reset before calling it. We have it so it also restores the flags after,
since it could be called in the middle of another applet.

This also needed a way to retrieve the flags, so they are just done
through the return value.

* Add comments about not having to restore flags

Just for future reference

* lineedit: use new flag restoring

* win32: simplify mingw_access calling

Since we now have a way to get the previous flags, mingw_access can be
changed to ignore any stat flags

* stat: comments from PR

Adds 32 bytes.</content>
</entry>
<entry>
<title>win32: skip check for execute with tab-completion</title>
<updated>2026-05-20T07:39:36+00:00</updated>
<author>
<name>mbartlett21</name>
<email>mjmouse9999@gmail.com</email>
</author>
<published>2026-05-19T22:28:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6a7ccb6ca3bd9b661760879478ecf0d5f6112fc3'/>
<id>urn:sha1:6a7ccb6ca3bd9b661760879478ecf0d5f6112fc3</id>
<content type='text'>
Tab completion as arguments no longer reads a bit of each file to detect
whether it is executable.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-11-11T10:00:52+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-11-11T10:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0ee678e0d1d465f3d83fb22a4ec4e7ca33686284'/>
<id>urn:sha1:0ee678e0d1d465f3d83fb22a4ec4e7ca33686284</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lineedit: fix PS1='\W' for root directory</title>
<updated>2025-11-08T06:42:34+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-10-23T10:00:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8cafd7a908347a584261ee630fab2ba183273a86'/>
<id>urn:sha1:8cafd7a908347a584261ee630fab2ba183273a86</id>
<content type='text'>
'\W' in PS1 returned an empty string for the root directory.  bash
displays '/' in similar circumstances.

Avoid returning an empty string for the directory.

function                                             old     new   delta
parse_and_put_prompt                                 873     883     +10

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>lineedit: fix PS1='\W' for root directory</title>
<updated>2025-08-22T05:42:15+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-22T05:42:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=cf0fb20033952a6c0fbb98491b32d329d4568d83'/>
<id>urn:sha1:cf0fb20033952a6c0fbb98491b32d329d4568d83</id>
<content type='text'>
An upstream bug caused '\W' to return an empty string for the
root directory of any drive.  bash displays '/' in similar
circumstances on Linux.

Adds 16 bytes.

(GitHub issue #516)
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-08-15T08:00:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-15T08:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=01ff9c492111cf7d51ad074629d6e72bc69fc149'/>
<id>urn:sha1:01ff9c492111cf7d51ad074629d6e72bc69fc149</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-08-10T06:46:58+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-10T06:46:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c70a65f36c017f6feb7e86415bec1a644e71dbab'/>
<id>urn:sha1:c70a65f36c017f6feb7e86415bec1a644e71dbab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>shell: fix the check of empty HISTFILE</title>
<updated>2025-08-02T22:11:11+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-08-02T22:11:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7d782e8813d1c3e7c9a96371ec37aaef1da08da9'/>
<id>urn:sha1:7d782e8813d1c3e7c9a96371ec37aaef1da08da9</id>
<content type='text'>
The check for "" history file is done on a wrong state pointer.

Fixes: shell: empty HISTFILE disables history saving, just as unset one did

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: empty HISTFILE disables history saving, just as unset one did</title>
<updated>2025-07-04T10:51:38+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-07-04T10:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8d3d0789172ab3f6580d04cd4bbafaef5e108ac7'/>
<id>urn:sha1:8d3d0789172ab3f6580d04cd4bbafaef5e108ac7</id>
<content type='text'>
The rationale here is that unsetting HISTFILE in /etc/profile
does not "stick": if it's unset, the default one is set later
(after /etc/profile is executed) by the shell.
But setting (and exporting, so it is inherited by all
(grand)child shells) an empty one works.

function                                             old     new   delta
save_history                                         296     316     +20

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: update HISTFILESIZE code to be actually useful</title>
<updated>2025-07-03T17:10:42+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-07-03T17:10:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9c46a0688576dd8c67d2fc24b68c07402da14fc8'/>
<id>urn:sha1:9c46a0688576dd8c67d2fc24b68c07402da14fc8</id>
<content type='text'>
"HISTFILESIZE=0" in profile wasn't working as intended,
"unset HISTFILE" wasn't preventing creation of history files
Now:
HISTSIZE=n      allows to reduce in-memory history buffer
HISTFILESIZE=n  allows to reduce history file size (0: truncate it)
unset HISTFILE  allows to not save history file at all

function                                             old     new   delta
exitshell                                            138     194     +56
hush_exit                                             97     143     +46
save_history                                         266     296     +30
hush_main                                           1170    1186     +16
.rodata                                           105762  105771      +9
load_history                                         246     254      +8
size_from_HISTFILESIZE                                44      41      -3
read_line_input                                     2746    2712     -34
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/2 up/down: 165/-37)           Total: 128 bytes

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