Turn on regex-easyesc by default

This was introduced in fish 3.1. It removes a superfluous round of
escaping in the replacement for `string replace -r`.

Part of #8857.
This commit is contained in:
Fabian Homborg 2022-04-08 16:53:42 +02:00 committed by Fabian Boehm
parent 8945b7ac08
commit 59c2ed9acf
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ const features_t::metadata_t features_t::metadata[features_t::flag_count] = {
{stderr_nocaret, L"stderr-nocaret", L"3.0", L"^ no longer redirects stderr", true},
{qmark_noglob, L"qmark-noglob", L"3.0", L"? no longer globs", false},
{string_replace_backslash, L"regex-easyesc", L"3.1", L"string replace -r needs fewer \\'s",
false},
true},
{ampersand_nobg_in_token, L"ampersand-nobg-in-token", L"3.4",
L"& only backgrounds if followed by a separator", false},
};

View File

@ -55,7 +55,7 @@ eval test_function
status features
#CHECK: stderr-nocaret on 3.0 ^ no longer redirects stderr
#CHECK: qmark-noglob off 3.0 ? no longer globs
#CHECK: regex-easyesc off 3.1 string replace -r needs fewer \'s
#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
status test-feature stderr-nocaret
echo $status