Fabian Boehm bdfbdaafcc
Forbid subcommand keywords in variables-as-commands (#10249)
This stops you from doing e.g.

```fish
set pager command less
echo foo | $pager
```

Currently, it would run the command *builtin*, which can only do
`--search` and similar, and would most likely end up printing its own
help.

That means it very very likely won't work, and the code is misguided -
it is trying to defeat function resolution in a way that won't do what
the author wants it to.

The alternative would be to make the command *builtin* execute the
command, *but*

1. That would require rearchitecting and rewriting a bunch of it and
the parser
2. It would be a large footgun, in that `set EDITOR command foo` will
only ever work inside fish, but $EDITOR is also used outside.

I don't want to add a feature that we would immediately have to discourage.
2024-02-06 22:12:55 +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-12-29 16:26:39 -08: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
2023-08-18 17:16:44 +02:00
2020-12-29 12:48:11 +01:00
2024-01-10 20:56:13 +01:00
2023-11-29 16:59:53 +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
2023-06-24 21:26:44 +02:00
2023-12-25 18:46:23 +01:00
2023-02-19 21:01:46 +01:00
2024-01-18 10:24:40 +01:00
2022-07-18 20:45:30 +02:00
2022-08-12 18:38:47 +02:00
2024-01-01 16:21:08 +01: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
2024-01-25 18:26:48 +01: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