Skip to content
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

expr breaks autoconf #147

E5ten opened this issue Oct 10, 2019 · 0 comments · May be fixed by #148


Copy link

@E5ten E5ten commented Oct 10, 2019

example command taken from autoconf with set -x enabled:
expr 'x--trace=AC_CONFIG_HEADERS:$n::${::}%' : 'x--[^=]*=\(.*\)' \| 'x--trace=AC_CONFIG_HEADERS:$n::${::}%' : 'x-.\(.*\)'
With other expr implementations, this outputs AC_CONFIG_HEADERS:$n::${::}%, while with toybox this outputs something wrong and different each time like @S{1U
This doesn't occur when the line if (TT.refree) free(TT.refree); in expr.c is removed, not to suggest that simply removing the line is the solution, because that does cause a leak, but just that it's where the problem is.
EDIT: I just noticed there are 2 instances of that line in the file, I was talking about the first one.

@E5ten E5ten linked a pull request that will close this issue Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.