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
_fzf_git_hashes depends on awk implementation #17
Comments
pld-gitsync
pushed a commit
to pld-linux/fzf
that referenced
this issue
Sep 29, 2022
fixed hash issue with mawk (see junegunn/fzf-git.sh#17)
I'm okay with this approach. Can you open a pull request? |
jpalus
added a commit
to jpalus/fzf-git.sh
that referenced
this issue
Sep 29, 2022
Improve compatibility with more awk implementations like mawk or nawk by changing interval expression (not supported in those variants) with repetition. Even gawk which does support interval expressions, required additional option to enable such support until version 4.0. Fixes junegunn#17
junegunn
pushed a commit
that referenced
this issue
Sep 30, 2022
Improve compatibility with more awk implementations like mawk or nawk by changing interval expression (not supported in those variants) with repetition. Even gawk which does support interval expressions, required additional option to enable such support until version 4.0. Fixes #17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears that interval expressions (
{<n>,<m>}
as in/[a-f0-9]{7,}/
) in AWK's regular expressions are somewhat fuzzy subject. Newer versions ofgawk
support it by default, older versions ofgawk
require additional option,mawk
does not support them. Also see: https://www.gnu.org/software/gawk/manual/html_node/Interval-Expressions.htmlIn my system
awk
points tomawk
hence hashes do not work. Would it be possible to either:/[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*/
so it's compatible with allawk
implementations (preferably)gawk
command instead ofawk
and requiregawk >= 4.0
The text was updated successfully, but these errors were encountered: