pindexis/qfc

`expr: syntax error`

Closed this issue · 1 comments

Using iTerm2 on OS X I get this error when pressing "Enter" on a highlighted result: expr: syntax error.

This is due to the use of expr in bin/qfc.sh. See here: http://tldp.org/LDP/abs/html/arithexp.html

I fixed it by changing two lines: #13

qfc still doesn't work for me, and I'm guessing that this might be because I use vi mode for input instead of the default emacs mode. I can't quite understand how the code works, so I'm not sure if this is the problem or not.

It seems that qfc started working when I opened a new shell. Not sure why it failed for some time. It would bring up the menu and I could select an option, but it would not insert the selected text. Now it works. Weird.