ridiculousfish
38f4330683
Rationalize $status and errors
...
Prior to this fix, fish was rather inconsistent in when $status gets set
in response to an error. For example, a failed expansion like "$foo["
would not modify $status.
This makes the following inter-related changes:
1. String expansion now directly returns the value to set for $status on
error. The value is always used.
2. parser_t::eval() now directly returns the proc_status_t, which cleans
up a lot of call sites.
3. We expose a new function exec_subshell_for_expand() which ignores
$status but returns errors specifically related to subshell expansion.
4. We reify the notion of "expansion breaking" errors. These include
command-not-found, expand syntax errors, and others.
The upshot is we are more consistent about always setting $status on
errors.
2020-01-25 17:28:41 -08:00
..
2020-01-25 17:28:41 -08:00
2020-01-22 17:40:31 +01:00
2017-04-11 13:45:53 -07:00
2018-05-20 14:35:52 -05:00
2019-07-02 23:05:50 +02:00
2017-04-13 23:14:36 -07:00
2017-04-13 23:14:36 -07:00
2017-04-13 23:14:36 -07:00
2017-06-09 13:35:00 -07:00
2017-04-13 23:14:36 -07:00
2017-04-13 23:14:36 -07:00
2019-11-25 16:43:54 -08:00
2019-09-14 16:37:57 -07:00
2019-11-01 13:21:49 +01:00
2019-11-01 13:21:49 +01:00
2019-11-01 13:21:49 +01:00
2019-09-14 12:46:57 -07:00
2019-10-06 13:43:05 -07:00
2019-10-06 13:43:05 -07:00
2019-04-11 21:59:23 -07:00
2017-08-04 12:01:16 -07:00
2017-08-04 12:01:16 -07:00
2017-08-04 12:01:16 -07:00
2019-09-14 16:37:57 -07:00
2019-02-01 18:34:45 +01:00
2019-02-01 18:34:45 +01:00
2019-02-01 18:34:45 +01:00
2019-09-17 22:04:33 -07:00
2019-06-22 18:20:54 +02:00
2018-04-01 13:48:21 -07:00
2018-12-11 18:23:37 +01:00
2019-06-28 11:16:27 -07:00
2017-06-30 17:13:02 -07:00
2017-06-30 17:13:02 -07:00
2017-06-30 17:13:02 -07:00
2019-11-07 23:33:35 +01:00
2017-07-20 13:07:30 -07:00
2018-11-20 05:26:54 -08:00
2017-09-15 13:43:45 -07:00
2017-07-16 15:13:39 -07:00
2019-05-24 17:00:56 -07:00
2019-05-24 17:00:56 -07:00
2017-07-25 12:44:26 -07:00
2019-04-07 09:20:32 -07:00
2019-09-19 15:06:51 -07:00
2017-06-16 21:01:56 -07:00
2019-09-14 13:01:36 -05:00
2019-09-14 13:01:36 -05:00
2019-11-25 13:07:15 +01:00
2018-03-12 07:04:05 -05:00
2019-05-19 18:23:27 +02:00
2019-05-19 18:23:27 +02:00
2019-04-07 15:00:13 -07:00
2019-04-07 09:20:32 -07:00
2019-04-07 09:20:32 -07:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2017-07-17 14:33:51 -07:00
2019-01-03 11:05:03 +01:00
2017-07-17 14:33:51 -07:00
2019-09-17 22:04:33 -07:00
2017-10-10 08:34:50 +02:00
2019-01-01 14:52:26 +01:00
2018-03-09 12:19:20 -06:00
2019-08-22 21:24:17 +08:00
2019-12-19 23:44:58 +01:00
2018-11-18 22:33:02 +01:00
2018-11-18 22:33:02 +01:00
2018-11-18 22:33:02 +01:00
2018-03-24 12:15:58 -05:00
2019-04-13 17:21:13 -05:00
2019-04-13 17:21:13 -05:00
2019-08-13 22:56:31 -07:00
2019-05-19 18:23:27 +02:00
2019-05-19 18:23:27 +02:00
2019-05-19 18:23:27 +02:00
2019-11-25 13:07:15 +01:00
2017-08-04 13:36:51 -07:00
2017-08-04 13:36:51 -07:00
2018-12-15 22:05:19 -08:00
2018-11-28 06:27:21 -08:00
2018-03-31 16:54:50 -07:00
2018-04-01 13:48:21 -07:00
2018-03-31 14:57:24 -07:00
2018-03-31 14:57:24 -07:00
2018-03-31 14:57:24 -07:00
2017-04-11 20:00:29 -07:00
2019-01-01 14:52:26 +01:00
2017-07-17 14:33:51 -07:00
2019-02-12 20:34:19 +01:00
2019-02-12 20:34:19 +01:00
2019-02-12 20:34:19 +01:00
2019-02-12 20:52:03 -08:00
2019-02-12 20:52:03 -08:00
2019-02-12 20:52:03 -08:00
2019-02-12 20:52:03 -08:00
2019-10-19 14:27:47 +02:00
2020-01-13 20:34:22 +01:00
2018-11-28 06:27:21 -08:00
2019-02-10 14:45:03 -08:00
2019-02-10 14:45:03 -08:00
2018-12-31 19:36:08 -06:00
2017-11-16 10:48:21 -08:00
2017-11-16 10:48:21 -08:00
2019-01-20 16:37:20 -08:00
2019-01-20 16:37:20 -08:00
2019-01-20 16:37:20 -08:00
2018-11-28 06:27:21 -08:00
2018-10-15 14:11:37 -05:00
2018-10-15 14:11:37 -05:00