mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 21:11:15 -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:
@@ -283,6 +283,9 @@ string repeat -l fakearg
|
||||
####################
|
||||
# string match --entire -r "a*b[xy]+" abc abxc bye aaabyz kaabxz abbxy abcx caabxyxz
|
||||
|
||||
####################
|
||||
# string match --entire "" -- banana
|
||||
|
||||
####################
|
||||
# string match -r "a*b[xy]+" abc abxc bye aaabyz kaabxz abbxy abcx caabxyxz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user