<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/coreutils, 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-07-03T13:54:13+00:00</updated>
<entry>
<title>join: code shrink (4)</title>
<updated>2026-07-03T13:54:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-03T13:54:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d58fec2ae013f00f86dee5ce26b259761c63fffd'/>
<id>urn:sha1:d58fec2ae013f00f86dee5ce26b259761c63fffd</id>
<content type='text'>
The user supplies field numbers with the -o, -1 and -2 options.
It feels more natural to convert these to 0-based field indices
in the code.

Saves 32-48 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>join: code shrink (3)</title>
<updated>2026-07-03T13:40:27+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-03T12:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=696758b57738090390df9c2619c3cc5206e74146'/>
<id>urn:sha1:696758b57738090390df9c2619c3cc5206e74146</id>
<content type='text'>
When splitting the fields of a line, keep the string allocated
for the line and make the 'fields' array point into it rather
than allocating a new string for each field.

Saves 48 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>join: code shrink (2)</title>
<updated>2026-07-03T11:39:20+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-03T11:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=00cf32a21dba0187ece976bc9d33e4a8a8af8875'/>
<id>urn:sha1:00cf32a21dba0187ece976bc9d33e4a8a8af8875</id>
<content type='text'>
Reduce the amount of duplicated code in readfields() by handling
a pushed back line inside the main loop, with a flag to indicate
the first pass through the loop.

Replace some memcpy() calls with structure assignments.

Fix a bug in the code to increase the size of the 'lines' array.
It set the capacity to either 8 or 0.

Saves 112-128 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>join: code shrink</title>
<updated>2026-06-30T08:07:06+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-30T08:07:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b2fcbec6605532b7fa9a6e004bab7f731e956913'/>
<id>urn:sha1:b2fcbec6605532b7fa9a6e004bab7f731e956913</id>
<content type='text'>
Adopt some BusyBox idioms in join_main().  In particular:

- The '-a' and '-v' options are mutually exclusive. Enforce this
  in getopt32() instead of by hand.  Also, since they're mutually
  exclusive we don't need a distinct list for each.

- Control some clean-up code with ENABLE_FEATURE_CLEAN_UP.

There are also a few cosmetic changes.

Saves 204-256 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>test: fix POSIX build</title>
<updated>2026-06-22T10:44:02+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-22T10:44:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a2afe021c5beec17f23575f4e21803d1ffd7d7c9'/>
<id>urn:sha1:a2afe021c5beec17f23575f4e21803d1ffd7d7c9</id>
<content type='text'>
One Windows-specific line of code wasn't protected by #ifdef.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<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>df,lsattr: support Unix-like mount points</title>
<updated>2026-06-15T11:43:03+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-15T11:36:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d4fefaceac846bbf8acbb110924b0caff6df698e'/>
<id>urn:sha1:d4fefaceac846bbf8acbb110924b0caff6df698e</id>
<content type='text'>
Update 'lsattr' to distinguish between mount points and junctions.

Use the new 'mntent' functions in 'df' to display mount points as
well as drive letters.  If mount point is associated with a drive
letter this is displayed as the filesystem.  The Windows-specific
'-w' option forces the volume name to be displayed instead, if
avaialable.

Adds 87-111 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>stty: code shrink</title>
<updated>2026-05-26T06:40:19+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-05-26T06:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f9e24f4766afdf2c0a1011097bd2fd6e01fd39e0'/>
<id>urn:sha1:f9e24f4766afdf2c0a1011097bd2fd6e01fd39e0</id>
<content type='text'>
The current implementation of 'stty' for Windows only uses a
limited subset of the flags in 'struct termios'.  Remove some
unused features.

Saves 16-40 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: allow stat(2) to skip costly check for execute</title>
<updated>2026-05-18T06:55:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-05-18T06:55:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1fb1a65064748a54fba4bf4b5e8700f8e61f003f'/>
<id>urn:sha1:1fb1a65064748a54fba4bf4b5e8700f8e61f003f</id>
<content type='text'>
If 'ls' is invoked without the '-l' option (or something that's
equivalent) and colour output isn't required, there's no need to
perform the expensive check for execute permission.

Allow 'ls' to inform stat(2) not to call has_exec_format().  This
has been combined with the existing mechanism to enable counting
subdirectories.

With this change the command 'ls | wc -l' used in issue #589
doesn't perform the test which upset Windows' anti-malware thing.

Adds 32-48 bytes.

(GitHub issue #589)
</content>
</entry>
<entry>
<title>dd: remove note about /dev/urandom and /dev/zero</title>
<updated>2026-05-12T12:59:45+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-05-12T12:59:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4bc07f64b678e3e614e659d44b55ad1100d80d32'/>
<id>urn:sha1:4bc07f64b678e3e614e659d44b55ad1100d80d32</id>
<content type='text'>
Now that /dev/urandom and /dev/zero can be used by all applets
there's no need to mention that dd has support for them.

Saves 32-56 bytes.
</content>
</entry>
</feed>
