Enable ampersand-nobg-in-token by default

To recap, this means `&` in the middle of a word no longer
backgrounds.

So:

```fish
echo foo&bar # prints foo&bar
echo foo& bar # backgrounds an echo that prints "foo" and runs "bar"
```
This commit is contained in:
Fabian Homborg 2022-04-08 17:45:41 +02:00 committed by Fabian Boehm
parent 7f905b082d
commit 49eb07f98f
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ const features_t::metadata_t features_t::metadata[features_t::flag_count] = {
{string_replace_backslash, L"regex-easyesc", L"3.1", L"string replace -r needs fewer \\'s",
true, false},
{ampersand_nobg_in_token, L"ampersand-nobg-in-token", L"3.4",
L"& only backgrounds if followed by a separator", false, false},
L"& only backgrounds if followed by a separator", true, false},
};
const struct features_t::metadata_t *features_t::metadata_for(const wchar_t *name) {

View file

@ -56,7 +56,7 @@ status features
#CHECK: stderr-nocaret on 3.0 ^ no longer redirects stderr
#CHECK: qmark-noglob off 3.0 ? no longer globs
#CHECK: regex-easyesc on 3.1 string replace -r needs fewer \'s
#CHECK: ampersand-nobg-in-token off 3.4 & only backgrounds if followed by a separator
#CHECK: ampersand-nobg-in-token on 3.4 & only backgrounds if followed by a separator
status test-feature stderr-nocaret
echo $status
#CHECK: 0