mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-12 14:51:16 -03:00
[string] Match everything with an empty pattern and -e
I.e. `string match --entire "" -- banana` used to match nothing, now it matches everything. Fixes #4971.
This commit is contained in:
@@ -384,6 +384,10 @@ kaabxz
|
||||
abbxy
|
||||
caabxyxz
|
||||
|
||||
####################
|
||||
# string match --entire "" -- banana
|
||||
banana
|
||||
|
||||
####################
|
||||
# string match -r "a*b[xy]+" abc abxc bye aaabyz kaabxz abbxy abcx caabxyxz
|
||||
abx
|
||||
|
||||
Reference in New Issue
Block a user