Michael Brown
66679fe7df
[cmdline] Fix multi-layer variable expansion (again)
...
Expansion of the (admittedly perverse) "aaa}bbb${ccc" will currently
fail because expand_command() does not check that the closing "}"
occurs later than the opening "${".
Fix by ensuring that the most recent opening "${" is used to match
against the first *subsequent* closing "}".
Total cost of this change: -12 bytes, bringing the overall cost of
this feature to -4 bytes.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
2010-11-23 00:18:11 +00:00
..
2010-09-14 20:37:15 +01:00
2010-04-19 23:43:39 +01:00
2009-05-18 08:33:25 +01:00
2010-05-28 15:41:37 +01:00
2010-05-28 12:47:10 +01:00
2009-05-18 08:33:25 +01:00
2010-05-27 01:18:17 +01:00
2009-05-18 08:33:25 +01:00
2010-09-14 20:37:15 +01:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2009-06-03 10:13:29 +01:00
2010-04-25 17:25:30 +01:00
2010-07-14 12:28:18 +01:00
2010-09-22 17:09:56 +01:00
2010-09-03 21:21:14 +01:00
2010-09-22 17:09:56 +01:00
2006-12-20 03:49:36 +00:00
2010-11-23 00:18:11 +00:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-07-14 12:43:10 +01:00
2009-05-18 08:33:25 +01:00
2010-06-22 15:50:31 +01:00
2005-03-08 18:53:11 +00:00
2010-07-11 15:55:04 +01:00
2010-04-19 23:43:39 +01:00
2010-06-22 19:12:40 +01:00
2010-04-19 23:43:39 +01:00
2010-06-22 14:40:09 +01:00
2010-04-19 23:43:39 +01:00
2010-04-25 01:50:46 +01:00
2010-11-08 03:35:35 +00:00
2010-08-19 12:22:07 +01:00
2010-06-22 14:40:09 +01:00
2010-04-19 23:43:39 +01:00
2010-09-14 20:37:15 +01:00
2010-04-19 23:43:39 +01:00
2010-06-22 15:50:31 +01:00
2010-11-21 20:38:26 +00:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-09-03 21:21:14 +01:00
2010-11-08 03:15:28 +00:00
2010-04-19 23:43:39 +01:00
2010-11-08 03:35:35 +00:00
2010-06-22 15:50:31 +01:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-11-13 00:28:26 +00:00
2009-05-18 08:33:25 +01:00
2007-08-02 01:47:31 +02:00
2010-08-19 12:22:07 +01:00
2009-05-18 08:33:25 +01:00
2010-04-25 17:21:49 +01:00
2010-04-19 23:43:39 +01:00
2010-04-19 23:43:39 +01:00
2010-09-05 03:12:17 +01:00