Denys Vlasenko
440da97ed7
ash: expand: Fix ghost fields with unquoted $@/$*
...
Upstream commit:
Date: Fri, 23 Mar 2018 18:58:47 +0800
expand: Fix ghost fields with unquoted $@/$*
You're right. The proper fix to this is to ensure that nulonly
is not set in varvalue for $*. It should only be set for $@ when
it's inside double quotes.
In fact there is another bug while we're playing with $@/$*.
When IFS is set to a non-whitespace character such as :, $*
outside quotes won't remove empty fields as it should.
This patch fixes both problems.
Reported-by: Martijn Dekker <martijn@inlv.org>
Suggested-by: Harald van Dijk <harald@gigawatt.nl>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
function old new delta
argstr 1111 1113 +2
evalvar 571 569 -2
varvalue 579 576 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 2/-5) Total: -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-08-05 14:29:58 +02:00
..
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2018-04-11 12:39:18 +02:00
2018-04-11 12:39:18 +02:00
2017-07-26 00:30:02 +02:00
2017-07-26 00:30:02 +02:00
2017-08-14 15:01:32 +02:00
2017-07-25 14:55:05 +02:00
2018-01-13 19:28:19 +01:00
2018-01-13 19:28:19 +01:00
2017-07-25 15:25:07 +02:00
2017-07-25 15:25:07 +02:00
2017-07-25 15:18:57 +02:00
2017-07-25 15:18:57 +02:00
2017-07-26 00:07:27 +02:00
2017-07-26 00:07:27 +02:00
2016-10-26 15:56:53 +02:00
2016-10-26 15:56:53 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2017-07-25 16:29:36 +02:00
2017-07-21 13:37:25 +02:00
2017-07-21 13:37:25 +02:00
2017-07-21 13:37:25 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2017-07-25 16:29:36 +02:00
2017-07-25 16:29:36 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2015-04-18 19:36:38 +02:00
2015-04-18 19:36:38 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2016-07-25 03:56:00 +02:00
2017-07-06 19:50:42 +02:00
2017-07-17 17:49:11 +02:00
2017-07-17 17:49:11 +02:00
2018-04-02 13:15:37 +02:00
2018-04-02 13:15:37 +02:00
2016-10-02 18:08:04 +02:00
2016-10-02 18:08:04 +02:00
2016-10-02 18:08:04 +02:00
2018-04-02 13:15:37 +02:00
2018-04-02 13:15:37 +02:00
2018-04-02 13:15:37 +02:00
2018-04-02 13:15:37 +02:00
2018-08-04 22:25:28 +02:00
2018-08-04 22:25:28 +02:00
2018-01-25 14:09:06 +01:00
2018-01-25 14:09:06 +01:00
2018-01-25 14:09:06 +01:00
2018-01-25 14:09:06 +01:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2018-08-05 11:14:11 +02:00
2018-08-05 11:14:11 +02:00
2016-10-03 00:06:55 +02:00
2016-10-03 00:06:55 +02:00
2018-03-31 20:31:13 +02:00
2018-03-31 20:31:13 +02:00
2016-10-02 18:08:04 +02:00
2016-10-02 18:08:04 +02:00
2016-09-29 16:59:06 +02:00
2016-09-29 16:59:06 +02:00
2016-09-29 16:59:06 +02:00
2016-09-29 16:59:06 +02:00
2016-09-29 17:58:58 +02:00
2016-09-29 20:02:53 +02:00
2016-09-29 16:59:06 +02:00
2016-09-29 16:59:06 +02:00
2016-10-02 02:46:56 +02:00
2016-10-02 02:46:56 +02:00
2016-10-01 20:55:02 +02:00
2016-10-01 20:55:02 +02:00
2016-10-01 20:55:02 +02:00
2016-10-01 20:55:02 +02:00
2018-04-11 16:02:58 +02:00
2018-04-11 16:02:58 +02:00
2018-08-05 14:29:58 +02:00
2018-08-05 14:29:58 +02:00
2015-05-18 09:56:16 +02:00
2015-05-18 09:56:16 +02:00
2015-05-18 09:53:26 +02:00
2015-05-18 09:53:26 +02:00
2015-05-18 09:57:51 +02:00
2015-05-18 09:57:51 +02:00
2015-05-18 09:51:35 +02:00
2015-05-18 09:51:35 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 10:13:21 +02:00
2015-05-18 09:57:51 +02:00
2015-05-18 09:57:51 +02:00
2016-03-22 18:19:29 -04:00
2017-07-06 19:29:23 +02:00