-
Notifications
You must be signed in to change notification settings - Fork 15
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
autopoint
doesn't handle unquoted aux dirs correctly
#61
Comments
If we can do something like |
elizabeth@ember:~ % dirname "AC_CONFIG_AUX_DIR(utils)"
. That won't work. The best thing to do imo is use sed: dirprefix="$(echo "$line" | sed -E 's#\[|\]##g;s#.*\((.*)\)#\1#')" Example: elizabeth@ember:~ % echo "AC_CONFIG_AUX_DIR([utils])" | sed -E 's#\[|\]##g;s#.*\((.*)\)#\1#'
utils The reason for the two regexes is that for some reason I cannot fathom, dirprefix="$(echo "$line" | sed -E 's#\[|\]##g)"
dirprefix="${dirprefix##*(}"
dirprefix="${dirprefix%%)*}" Or some such, but I see little to no benefit. |
or pipe through awk, which is probably way less cryptic to the reader. anyone working on a patch ? |
awilfox's suggested one-line fix:
has been commited to laurikari/tre if you want to use the latest. |
Elizafox/tre-regex-sys#1 has led me to a curious thing:
will break gettext-tiny's
autopoint
:because it doesn't have the bracket quotes that
autopoint
is expecting:Trying to see if we can find an easy fix.
The text was updated successfully, but these errors were encountered: