<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/lineedit.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2025-11-11T10:00:52+00:00</updated>
<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>
<entry>
<title>shell: fix race between signal handlers setting bb_got_signal and poll()</title>
<updated>2025-07-02T20:42:47+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-07-02T20:42:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=36ac283682bb176987c0c09e5f8c7e7e96fb1651'/>
<id>urn:sha1:36ac283682bb176987c0c09e5f8c7e7e96fb1651</id>
<content type='text'>
function                                             old     new   delta
__ppoll_time64                                         -     211    +211
check_got_signal_and_poll                              -     164    +164
read_key                                             607     601      -6
shell_builtin_read                                  1328    1318     -10
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 0/2 up/down: 375/-16)           Total: 359 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>lineedit: fix left-over print to stdout</title>
<updated>2025-07-01T10:25:29+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2025-04-15T21:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=952a7b9cececa314b2f5a9827dac8213b1a74460'/>
<id>urn:sha1:952a7b9cececa314b2f5a9827dac8213b1a74460</id>
<content type='text'>
There's code printing to stderr both before and after the single call to
puts inside put_cur_glyph_and_inc_cursor().

This is likely an oversight as we want everything to go through the
same file descriptor, so switch it over to fputs.

Fixes: fd47f056765a ("lineedit: print prompt and editing operations to stderr")
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
