-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support %, %%, #, ## expansion #47
Comments
Looks interesting, but pattern matching requires working with regex, which has different implementations in different programs. Definitely needs some research and probably implementation complexity too. Not sure if there's any use case worth the effort. I'll keep this issue open though. |
My use case is parsing m4, ebuild, PKGBUILD and APKBUILD files. Using the stdlib fnmatch is likely all you need and no re involved IMHO |
I think we still need to deal with regex. For example, let's consider the string |
Worst case we'll need to try matching every possible combinations explicitly. I hope there's a better way. |
It would be great if %, %%, #, ## expansions were supported
See https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html
The text was updated successfully, but these errors were encountered: