mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Add a qmark-noglob feature flag
This adds a feature flag for controlling whether question marks are globs. It is not yet hooked up.
This commit is contained in:
parent
d3201ad887
commit
dc8d603f98
3 changed files with 15 additions and 10 deletions
|
@ -12,6 +12,7 @@ features_t &mutable_fish_features() { return global_features; }
|
||||||
|
|
||||||
const features_t::metadata_t features_t::metadata[features_t::flag_count] = {
|
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"},
|
{stderr_nocaret, L"stderr-nocaret", L"3.0", L"^ no longer redirects stderr"},
|
||||||
|
{qmark_noglob, L"qmark-noglob", L"3.0", L"? no longer globs"},
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct features_t::metadata_t *features_t::metadata_for(const wchar_t *name) {
|
const struct features_t::metadata_t *features_t::metadata_for(const wchar_t *name) {
|
||||||
|
|
|
@ -14,6 +14,9 @@ public:
|
||||||
/// Whether ^ is supported for stderr redirection.
|
/// Whether ^ is supported for stderr redirection.
|
||||||
stderr_nocaret,
|
stderr_nocaret,
|
||||||
|
|
||||||
|
/// Whether ? is supported as a glob.
|
||||||
|
qmark_noglob,
|
||||||
|
|
||||||
/// The number of flags.
|
/// The number of flags.
|
||||||
flag_count
|
flag_count
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,5 +5,6 @@ test_function
|
||||||
####################
|
####################
|
||||||
# Future Feature Flags
|
# Future Feature Flags
|
||||||
stderr-nocaret off 3.0 ^ no longer redirects stderr
|
stderr-nocaret off 3.0 ^ no longer redirects stderr
|
||||||
|
qmark-noglob off 3.0 ? no longer globs
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
|
|
Loading…
Reference in a new issue