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
..
2008-06-10 18:06:24 +00:00
2008-06-18 17:53:57 +00:00
2008-06-16 12:47:11 +00:00
2008-06-16 12:47:11 +00: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
2009-04-09 19:16:15 +00: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
2009-03-28 18:55:34 +00: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
2008-06-18 17:49:58 +00:00
2009-10-19 23:09:06 +02:00
2009-04-05 02:10:39 +00:00
2009-04-10 12:03:20 +00:00
2017-07-18 03:23:07 +02:00
2017-07-18 03:23:07 +02:00
2017-07-18 15:58:02 +02:00
2017-07-18 15:58:02 +02:00
2018-04-04 21:14:28 +02:00
2018-04-04 21:14:28 +02:00
2007-05-23 00:32:25 +00:00
2007-05-23 00:32:25 +00:00
2017-07-25 16:29:36 +02:00
2017-08-29 14:35:58 +02:00
2009-06-01 14:16:43 -04:00
2009-06-01 14:16:43 -04:00
2008-07-31 10:34:48 +00:00
2008-07-31 10:34:48 +00:00
2016-10-02 21:12:02 +02:00
2016-10-02 21:12:02 +02:00
2016-10-02 21:13:13 +02:00
2016-10-02 21:13:13 +02:00
2016-10-02 21:13:13 +02:00
2016-10-02 21:13:13 +02:00
2016-10-02 18:17:15 +02:00
2016-10-02 18:17:15 +02:00
2010-09-05 14:47:58 +02:00
2010-09-05 14:47:58 +02:00
2017-07-06 19:48:20 +02:00
2017-07-06 19:50:42 +02:00
2017-07-17 16:46:57 +02:00
2017-07-17 16:46:57 +02:00
2010-09-05 14:47:58 +02:00
2010-09-05 14:47:58 +02:00
2018-04-02 13:15:37 +02:00
2010-09-05 14:47:58 +02:00
2018-04-02 13:15:37 +02:00
2010-09-06 10:26:37 +02:00
2010-09-10 10:17:53 +02:00
2010-09-10 10:17:53 +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:07:40 +01:00
2018-01-25 14:07:40 +01:00
2018-01-25 14:07:40 +01:00
2018-01-25 14:07:40 +01:00
2007-05-14 16:23:23 +00:00
2007-05-14 16:23:23 +00:00
2007-11-23 21:08:38 +00:00
2007-11-23 21:08:38 +00:00
2011-08-01 14:06:20 +02:00
2011-08-01 14:06:20 +02:00
2009-04-03 03:19:15 +00:00
2009-04-03 03:19:15 +00:00
2008-10-09 16:29:44 +00:00
2008-10-09 16:29:44 +00:00
2018-01-19 15:52:36 +01:00
2018-03-31 20:31:13 +02:00
2018-04-05 00:51:55 +02:00
2018-04-05 00:51:55 +02:00
2018-04-05 00:51:55 +02:00
2018-04-05 00:51:55 +02:00
2010-05-22 00:26:06 +02:00
2010-05-22 00:26:06 +02:00
2008-10-13 12:36:05 +00:00
2008-10-13 12:36:05 +00:00
2010-07-16 13:52:32 +02:00
2010-07-16 13:52:32 +02:00
2007-05-14 16:19:34 +00:00
2008-06-18 17:53:57 +00:00
2016-09-29 17:58:58 +02:00
2016-09-29 20:02:53 +02:00
2010-09-09 14:04:57 +02:00
2010-09-09 14:04:57 +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 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2015-05-18 10:23:16 +02:00
2017-07-06 19:29:23 +02:00
2017-07-06 19:29:23 +02:00