Files
fish-shell/tests/checks
Fabian Boehm 67faa107b0 expand_cmdsubst: Make more errors known
These printed "Unknown error while evaluating command substitution".

Now they print something like

```
fish: for: status: cannot overwrite read-only variable
for status in foo; end
    ^~~~~^
in command substitution
fish: Invalid arguments
echo (for status in foo; end)
     ^~~~~~~~~~~~~~~~~~~~~~~^
```

for `echo (for status in foo; end)`

This is, of course, still not *great*. Mostly the `fish: Invalid
arguments` is basically entirely redundant.

An alternative is to simply skip the error message, but that requires some
more scaffolding (describe_with_prefix adds some error messages on its
own, so we can't simply say "don't add the prefix if we don't have a
message")

(cherry picked from commit 1b5eec2af6)
2023-11-09 17:51:15 +01:00
..
2023-07-27 22:00:03 -07:00
2022-08-12 18:38:47 +02:00
2022-06-27 17:50:40 +02:00
2023-09-11 16:52:38 +02:00
2019-06-26 21:19:40 +02:00
2020-01-19 15:07:06 +01:00
2022-08-12 18:38:47 +02:00
2023-10-06 18:15:25 +02:00
2022-11-15 19:05:18 +01:00
2023-08-18 17:16:44 +02:00
2020-12-29 12:48:11 +01:00
2022-10-09 15:24:01 +02:00
2022-08-12 18:38:47 +02:00
2023-08-25 16:15:52 +02:00
2022-08-12 18:38:47 +02:00
2023-06-24 21:26:44 +02:00
2023-02-19 21:01:46 +01:00
2023-01-13 17:56:28 +01:00
2022-07-18 20:45:30 +02:00
2022-08-12 18:38:47 +02:00
2019-07-09 10:02:50 -07:00
2021-06-24 18:17:10 +02:00
2021-06-24 20:46:03 +02:00
2022-08-12 18:38:47 +02:00
2022-09-21 18:37:38 +02:00
2023-05-11 22:14:12 +02:00
2023-04-16 11:27:08 +02:00
2022-03-24 10:23:04 +08:00
2020-03-16 21:21:10 +01:00