mksh’s globbing really sucks. Way out: parse them as special kind of regex (NFA with making $KSH_MATCH an array, possibly).
References:
- https://research.swtch.com/glob
- https://swtch.com/~rsc/regexp/regexp1.html
mksh’s globbing really sucks. Way out: parse them as special kind of regex (NFA with making $KSH_MATCH an array, possibly).
References:
- https:/ /research. swtch.com/ glob
- https:/ /swtch. com/~rsc/ regexp/ regexp1. html