Johannes Altmanninger
45e7c709f4
Consolidate complete cycle detection and always report error on cycle
...
Detect recursive calls to builtin complete and the internal completion in
the same place.
In 0a0149cc2 (Prevent infinite recursion when completion wraps variable assignment)
we don't print an error when completing certain aliases like:
alias vim "A=B vim"
But we also gave no completions.
We could make this case work, but I think that trying to salvage situations
like this one is way too complex. Instead, let the user know by printing an
error. Not sure if the style of the error fits.
We could add some heuristic to alias to not add --wraps in some cyclic cases.
2020-09-26 14:56:03 +02:00
..
2019-06-25 22:31:06 +02:00
2020-03-09 19:46:43 +01:00
2020-07-27 17:19:44 +02:00
2020-09-04 16:30:13 +02:00
2020-03-09 19:46:43 +01:00
2020-09-19 11:47:41 +02:00
2020-02-08 13:30:48 +01:00
2020-09-04 16:55:09 +02:00
2019-06-26 21:19:40 +02:00
2020-03-09 19:46:43 +01:00
2019-06-25 22:31:06 +02:00
2020-02-08 09:31:49 +01:00
2020-02-08 16:23:25 -08:00
2020-01-30 17:34:48 +01:00
2020-02-26 19:15:50 +01:00
2020-04-26 08:49:01 +02:00
2019-11-02 16:48:08 -07:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2020-09-06 11:15:54 +02:00
2019-06-25 20:56:29 +02:00
2020-03-17 21:45:49 +01:00
2020-09-26 14:56:03 +02:00
2020-03-09 19:46:43 +01:00
2019-06-26 21:19:40 +02:00
2020-01-18 11:50:50 -08:00
2020-01-19 15:07:06 +01:00
2019-12-08 11:44:21 -08:00
2020-01-13 20:34:22 +01:00
2019-06-28 11:22:49 -07:00
2020-01-25 17:28:41 -08:00
2020-09-26 07:22:17 +02:00
2020-01-13 20:34:22 +01:00
2020-03-28 15:46:47 +01:00
2019-12-13 16:51:49 -08:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2020-02-14 20:28:46 +01:00
2019-06-25 22:31:06 +02:00
2019-06-25 20:56:29 +02:00
2019-08-13 22:56:31 -07:00
2019-08-13 22:56:31 -07:00
2020-09-12 19:28:01 +02:00
2020-01-08 09:10:14 +01:00
2020-01-03 14:40:28 -08:00
2020-06-25 23:19:44 -05:00
2020-03-09 19:46:43 +01:00
2020-02-07 20:53:20 +01:00
2020-08-17 17:40:28 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2020-02-14 20:09:07 +01:00
2020-09-26 14:47:20 +02:00
2020-07-27 14:51:37 -07:00
2020-04-18 16:26:54 -07:00
2020-01-25 14:06:34 +01:00
2020-09-13 19:28:14 -07:00
2020-03-15 21:01:11 +01:00
2020-06-17 20:05:48 +02:00
2020-03-09 19:46:43 +01:00
2020-04-26 08:49:01 +02:00
2020-08-26 17:48:58 +02:00
2020-02-17 11:39:53 +01:00
2020-09-13 15:36:26 -07:00
2020-03-09 19:46:43 +01:00
2020-05-18 20:48:36 +02:00
2020-03-09 19:46:43 +01:00
2020-03-09 19:46:43 +01:00
2019-06-25 20:56:29 +02:00
2020-06-13 19:53:21 +02:00
2020-09-12 19:26:04 +02:00
2020-07-14 20:55:38 +02:00
2020-03-09 19:46:43 +01:00
2019-12-11 16:34:20 -08:00
2020-08-05 12:23:49 -07:00
2019-07-09 10:02:50 -07:00
2020-03-09 19:46:43 +01:00
2020-08-10 12:26:30 -07:00
2020-05-16 11:58:12 +02:00
2020-03-09 19:46:43 +01:00
2019-11-10 12:36:46 -08:00
2020-06-04 18:23:32 +02:00
2020-01-25 17:28:41 -08:00
2020-03-09 19:46:43 +01:00
2020-09-20 10:36:17 +02:00
2020-03-09 19:46:43 +01:00
2020-06-07 16:23:29 +02:00
2020-03-09 19:46:43 +01:00
2020-02-23 23:42:57 +01:00
2019-11-02 14:40:57 -07:00
2020-09-23 17:24:51 +02:00
2020-03-16 21:21:10 +01:00
2020-01-17 14:53:35 +01:00
2020-02-08 09:31:49 +01:00
2019-06-25 20:56:29 +02:00
2020-09-26 14:56:03 +02:00
2020-09-26 14:56:03 +02:00
2020-02-08 09:31:49 +01:00