<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/findutils, branch fix_backslash</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=fix_backslash</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=fix_backslash'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2020-05-29T10:03:33+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2020-05-29T10:03:33+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-05-29T09:49:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=53c09d0e1720bd927a2995f87df324a9854f1771'/>
<id>urn:sha1:53c09d0e1720bd927a2995f87df324a9854f1771</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grep: add proper support for pattern_list</title>
<updated>2020-04-29T22:20:18+00:00</updated>
<author>
<name>Sören Tempel</name>
<email>soeren+git@soeren-tempel.net</email>
</author>
<published>2020-03-30T09:02:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=42a8984abc5eed709addac263aab43d64d47257d'/>
<id>urn:sha1:42a8984abc5eed709addac263aab43d64d47257d</id>
<content type='text'>
From POSIX.1-2008:

	The pattern_list's value shall consist of one or more patterns
	separated by &lt;newline&gt; characters;

As such, given patterns need to be split at newline characters. Without
doing so, busybox grep will interpret the newline as part of the pattern
which is not in accordance with POSIX.

See also: https://bugs.busybox.net/show_bug.cgi?id=12721

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>grep: Fix -f FILE when FILE is empty and -x provided</title>
<updated>2020-04-29T14:01:42+00:00</updated>
<author>
<name>Gray Wolf</name>
<email>wolf@wolfsden.cz</email>
</author>
<published>2020-04-29T13:49:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c3295d233b6a7d924814eec9a5c5999a876daf9e'/>
<id>urn:sha1:c3295d233b6a7d924814eec9a5c5999a876daf9e</id>
<content type='text'>
Grep currently special-cased empty pattern file to be the same as
pattern file with one empty line (empty pattern). That does mirror how
GNU grep behaves, except when -x is provided. In that case .* pattern
needs to be used instead.

Signed-off-by: Gray Wolf &lt;wolf@wolfsden.cz&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>xargs: restore correct behaviour of -n option</title>
<updated>2020-04-29T13:53:51+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-02-19T11:01:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1c462d47a0bc92f9f57af223456df53169acf3fe'/>
<id>urn:sha1:1c462d47a0bc92f9f57af223456df53169acf3fe</id>
<content type='text'>
Since commit 1ff7002b1 (xargs: fix handling of quoted arguments, closes
11441) the -n option hasn't worked properly:

   $ echo 1 2 3 | xargs -n 1 echo
   1
   2

   3

   $

Because state is now remembered between calls to process_stdin() it's
necessary to update the state before any premature return.

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>xargs: restore correct behaviour of -n option</title>
<updated>2020-03-29T11:59:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-03-29T11:59:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5d6744d8635fcbd1ef4cce85a737aacfde4ddeba'/>
<id>urn:sha1:5d6744d8635fcbd1ef4cce85a737aacfde4ddeba</id>
<content type='text'>
Since commit 1ff7002b1 (xargs: fix handling of quoted arguments, closes
11441) the -n option hasn't worked properly:

   $ echo 1 2 3 | xargs -n 1 echo
   1
   2

   3

   $

Because state is now remembered between calls to process_stdin() it's
necessary to update the state before any premature return.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2020-02-15T13:25:04+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-02-15T13:25:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0abe89bc214c9d1f16f32c4339792066b875b7c6'/>
<id>urn:sha1:0abe89bc214c9d1f16f32c4339792066b875b7c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xargs: fix handling of quoted arguments, closes 11441</title>
<updated>2020-01-29T13:39:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-01-24T13:16:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1ff7002b1d229c678fdffebec602fb4c54439a31'/>
<id>urn:sha1:1ff7002b1d229c678fdffebec602fb4c54439a31</id>
<content type='text'>
As reported in bug 11441 when presented with a large number of quoted
arguments xargs can return 'argument line too long':

   seq 10000 29999 | sed -e 's/^/"/' -e 's/$/"/' | busybox xargs echo

This happens because the variant of process_stdin() which handles quoted
arguments doesn't preserve state between calls.  If the allowed number
of characters is exceeded part way through a quoted argument the next
call to process_stdin() incorrectly treats the terminating quote as a
starting quote, thus quoting all of the argument separators.

function                                             old     new   delta
process_stdin                                        274     303     +29
xargs_main                                           731     745     +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 43/0)               Total: 43 bytes

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>Merge branch 'busybox' into merge</title>
<updated>2020-01-08T12:30:49+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-01-08T12:30:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a9271a8e97e6e7be5285330d5f19352decabf807'/>
<id>urn:sha1:a9271a8e97e6e7be5285330d5f19352decabf807</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grep: add -R</title>
<updated>2019-11-27T16:11:09+00:00</updated>
<author>
<name>Tomi Leppanen</name>
<email>tomi.leppanen@jolla.com</email>
</author>
<published>2019-11-25T15:59:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1b76ffaae400f266fe5aea0d5900a7e2ab9d7aa8'/>
<id>urn:sha1:1b76ffaae400f266fe5aea0d5900a7e2ab9d7aa8</id>
<content type='text'>
This adds -R option to grep similar to GNU grep. It is the same as -r
but also dereferences symbolic links to directories.

function                                             old     new   delta
grep_main                                            834     850     +16
packed_usage                                       33362   33368      +6
grep_file                                           1440    1441      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 23/0)               Total: 23 bytes

Signed-off-by: Tomi Leppanen &lt;tomi.leppanen@jolla.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>find: implement -empty</title>
<updated>2019-09-12T10:04:34+00:00</updated>
<author>
<name>Aaro Koskinen</name>
<email>aaro.koskinen@iki.fi</email>
</author>
<published>2019-09-12T10:04:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=af18b301eb16eb8496b31e5386b4c21c9045a5e6'/>
<id>urn:sha1:af18b301eb16eb8496b31e5386b4c21c9045a5e6</id>
<content type='text'>
function                                             old     new   delta
func_empty                                             -     121    +121
packed_usage                                       33154   33167     +13
parse_params                                        1490    1500     +10
static.params                                        228     235      +7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 151/0)             Total: 151 bytes

Signed-off-by: Aaro Koskinen &lt;aaro.koskinen@iki.fi&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
