mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
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:
committed by
Fabian Boehm
parent
8945b7ac08
commit
59c2ed9acf
@@ -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},
|
{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},
|
{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",
|
{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",
|
{ampersand_nobg_in_token, L"ampersand-nobg-in-token", L"3.4",
|
||||||
L"& only backgrounds if followed by a separator", false},
|
L"& only backgrounds if followed by a separator", false},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ eval test_function
|
|||||||
status features
|
status features
|
||||||
#CHECK: stderr-nocaret on 3.0 ^ no longer redirects stderr
|
#CHECK: stderr-nocaret on 3.0 ^ no longer redirects stderr
|
||||||
#CHECK: qmark-noglob off 3.0 ? no longer globs
|
#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
|
#CHECK: ampersand-nobg-in-token off 3.4 & only backgrounds if followed by a separator
|
||||||
status test-feature stderr-nocaret
|
status test-feature stderr-nocaret
|
||||||
echo $status
|
echo $status
|
||||||
|
|||||||
Reference in New Issue
Block a user