babarot / enhancd

:rocket: A next-generation cd command with your interactive filter
2.58k stars 109 forks source link

Gnu awk (gawk) related errors are printed on invocation #189

Closed mrincredibleu closed 1 year ago

mrincredibleu commented 1 year ago

What did you expect to happen? Matching directories should be listed.

What actually happened? Errors are printed

Output

$ cd lib
gawk: /Users/mrincredible/.zinit/plugins/b4b4r07---enhancd/functions/enhancd/lib/fuzzy.awk:8: warning: escape sequence `\/' treated as plain `/'
gawk: /Users/mrincredible/.zinit/plugins/b4b4r07---enhancd/functions/enhancd/lib/fuzzy.awk:9: (FILENAME=- FNR=3) fatal: attempt to use scalar `lines' as an array
no entry

Additional context The error seems to be related to a recent change:

https://github.com/b4b4r07/enhancd/blob/e27cf951aa737569165bd608e442abec34b19165/functions/enhancd/lib/fuzzy.awk#L6-L10

I am using Gnu Awk 5.2.1, API 3.2 and github.com/b4b4r07/enhancd @ e27cf951aa737569165bd608e442abec34b19165

babarot commented 1 year ago

Thank you for the report. I'll work on this

babarot commented 1 year ago

@mrincredibleu

I merged the patch and it was fixed on latest master branch!

mrincredibleu commented 1 year ago

すごい速いな〜!どうもありがとう!