Fabian Homborg 44f2f37bd4 Remove "Array index out of bounds" errors
This just removes every invalid index.

That means with `set foo a b c` and the "show" function from tests/expand.in:

- `show $foo[-5..-1]` prints "3 a b c"
- `show $foo[-10..1]` prints "1 a"
- `show $foo[2..5]` prints "2 b c"
- `show $foo[1 3 7 2]` prints "3 a c b"

and similar for command substitutions.

Fixes #826.
2017-06-20 17:52:23 -07:00
..
2017-01-31 22:10:53 -08:00
2017-02-20 20:23:55 -08:00
2017-02-20 20:23:55 -08:00
2017-02-20 20:23:55 -08:00
2017-03-20 16:42:53 +01:00
2016-12-19 17:44:54 -08:00
2016-11-28 18:04:37 -08:00
2017-04-30 20:21:40 -07:00
2014-09-21 21:03:44 -07:00
2014-09-21 21:03:44 -07:00
2016-09-18 20:09:06 -07:00
2014-12-23 15:46:47 -08:00
2017-01-31 22:10:53 -08:00
2017-06-16 21:01:56 -07:00
2017-06-16 21:01:56 -07:00
2017-04-29 19:20:03 +08:00
2017-01-31 22:10:53 -08:00
2017-01-31 22:10:53 -08:00
2016-12-29 14:00:15 +01:00
2016-12-29 14:00:15 +01:00
2017-02-20 18:43:13 -08:00
2016-12-20 16:46:33 -08:00
2017-04-05 15:31:13 -07:00
2017-04-05 15:31:13 -07:00
2017-04-05 15:31:13 -07:00
2017-06-20 17:18:59 -07:00
2005-09-20 23:31:55 +10:00
2017-06-18 22:25:00 -07:00
2017-06-18 22:25:00 -07:00
2005-09-20 23:31:55 +10:00
2010-09-18 10:18:26 +08:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2017-04-18 22:42:38 +02:00
2005-09-20 23:31:55 +10:00
2017-05-07 21:20:31 -07:00
2016-11-17 14:53:50 -08:00
2014-07-13 19:11:29 -07:00
2012-07-08 09:19:11 +08:00
2015-11-14 13:15:30 +01:00
2016-11-11 19:07:52 -08:00
2017-03-28 16:28:24 -07:00
2017-03-28 16:28:24 -07:00
2017-03-28 16:28:24 -07:00