hchbaw/auto-fu.zsh

bug?

Closed this issue · 1 comments

joe9 commented

Hello,

I could not figure out if this is due to my settings or if everyone sees these messages once in a while?

--()------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/43@master)--
which sr
which sr
/usr/bin/sr
sr is /usr/bin/sr
sr: /usr/bin/sr /usr/share/man/man1/sr.1.gz
/usr/bin/sr: symbolic link to surfraw' --(~)------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/43@master)-- wafu-rhs-protect:15: bad math expression: operand expected at> 1 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 1' afu-rhs-protect:21: bad math expression: operator expected at1 fg=green...' work/
afu-rhs-protect:15: bad math expression: operand expected at > 1 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 1'wget wgetpaste whatis whereis which who whoami wipefs wordforms wordlist2hunspell write wrjpgcom wtpt
afu-rhs-protect:21: bad math expression: operator expected at none > 1 +...' afu-rhs-protect:15: bad math expression: operand expected at> 2 + 1' where which
afu-rhs-protect:18: bad math expression: operand expected at > 2' afu-rhs-protect:21: bad math expression: operator expected at1 fg=green...'afu-gvars with-afu-magic-insert
with-afu-region-highlight-saving with-afu-trapint with-afu-zle-rebinding
afu-rhs-protect:15: bad math expression: operand expected at > 2 + 1' with-afu-magic-insert with-afu-menuselecting-handling with-afu-resume with-afu-trapint-handling with-afu-zsh-syntax-highlighting afu-rhs-protect:18: bad math expression: operand expected at> 2'
afu-rhs-protect:21: bad math expression: operator expected at none > 2 +...' watchMarketSlow wget what which-command whafu-rhs-protect:15: bad math expression: operand expected at> 2 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 2' afu-rhs-protect:21: bad math expression: operator expected at2 fg=red,b...'
afu-rhs-protect:15: bad math expression: operand expected at > 2 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 2'
afu-rhs-protect:21: bad math expression: operator expected at 3 standout...' afu-rhs-protect:15: bad math expression: operand expected at> 2 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 2' afu-rhs-protect:21: bad math expression: operator expected atnone > 2 +...'
afu-rhs-protect:15: bad math expression: operand expected at > 3 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 3'
afu-rhs-protect:21: bad math expression: operator expected at 2 fg=red,b...' afu-rhs-protect:15: bad math expression: operand expected at> 3 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 3' afu-rhs-protect:21: bad math expression: operator expected at3 standout...'
afu-rhs-protect:15: bad math expression: operand expected at > 3 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 3'
afu-rhs-protect:21: bad math expression: operator expected at none > 3 +...' whiafu-rhs-protect:15: bad math expression: operand expected at> 3 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 3' afu-rhs-protect:21: bad math expression: operator expected at3 fg=red,b...'
afu-rhs-protect:15: bad math expression: operand expected at > 3 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 3'
afu-rhs-protect:21: bad math expression: operator expected at 4 standout...' afu-rhs-protect:15: bad math expression: operand expected at> 3 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 3' afu-rhs-protect:21: bad math expression: operator expected atnone > 3 +...'
afu-rhs-protect:15: bad math expression: operand expected at > 4 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 4'
afu-rhs-protect:21: bad math expression: operator expected at 3 fg=red,b...' afu-rhs-protect:15: bad math expression: operand expected at> 4 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 4' afu-rhs-protect:21: bad math expression: operator expected at4 standout...'
afu-rhs-protect:15: bad math expression: operand expected at > 4 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 4'
afu-rhs-protect:21: bad math expression: operator expected at none > 4 +...' whicafu-rhs-protect:15: bad math expression: operand expected at> 4 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 4' afu-rhs-protect:21: bad math expression: operator expected at3 fg=red,b...'
afu-rhs-protect:15: bad math expression: operand expected at > 4 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 4'
afu-rhs-protect:21: bad math expression: operator expected at 4 standout...' afu-rhs-protect:15: bad math expression: operand expected at> 4 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 4' afu-rhs-protect:21: bad math expression: operator expected atnone > 4 +...'
afu-rhs-protect:15: bad math expression: operand expected at > 5 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 5'
afu-rhs-protect:21: bad math expression: operator expected at 3 fg=red,b...' afu-rhs-protect:15: bad math expression: operand expected at> 5 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 5' afu-rhs-protect:21: bad math expression: operator expected at4 standout...'
afu-rhs-protect:15: bad math expression: operand expected at > 5 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 5'
afu-rhs-protect:21: bad math expression: operator expected at none > 5 +...' whichafu-rhs-protect:15: bad math expression: operand expected at> 5 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 5' afu-rhs-protect:21: bad math expression: operator expected at5 fg=green...'
afu-rhs-protect:15: bad math expression: operand expected at > 5 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 5'
afu-rhs-protect:21: bad math expression: operator expected at 6 standout...' afu-rhs-protect:15: bad math expression: operand expected at> 5 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 5' afu-rhs-protect:21: bad math expression: operator expected atnone > 5 +...'

which

Usage:
whereis [options] file

Options:
-f define search scope
-b search only binaries
-B define binaries lookup path
-m search only manual paths
-M define man lookup path
-s search only sources path
-S define sources lookup path
-u search from unusual enties
-V output version information and exit
-h display this help and exit

--(~)------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/43@master)--
wafu-rhs-protect:15: bad math expression: operand expected at > 1 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 1'
afu-rhs-protect:21: bad math expression: operator expected at 1 fg=green...' afu-rhs-protect:15: bad math expression: operand expected at> 1 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 1' afu-rhs-protect:21: bad math expression: operator expected at2 standout...'
whafu-rhs-protect:15: bad math expression: operand expected at > 2 + 1' afu-rhs-protect:18: bad math expression: operand expected at> 2'
afu-rhs-protect:21: bad math expression: operator expected at 2 fg=red,b...' afu-rhs-protect:15: bad math expression: operand expected at> 2 + 1'
afu-rhs-protect:18: bad math expression: operand expected at > 2' afu-rhs-protect:21: bad math expression: operator expected at3 standout...'

No such keymap `main afu'

This is my auto-fu.zsh: http://codepad.org/enxoIlVq

At this point my shell becomes unresponsive and I have to kill it.

I am not sure if my below bindkey is causing the issue.
50-bindkeys.zsh:bindkey "ih" vi-cmd-mode

as it probably thinks I am tying ih when typing 'which' quickly. Not sure if that makes sense.

Please let me know if you need more details.

Thanks
Joe

joe9 commented

Same as a different issue regarding the usage of IFS.