My terminal on osx 10.11.6 will not accept `[` character

Every time I type it the terminal flashes but doesn't insert it. If I paste in a command that has a [ it will paste everything except the ['s

This has been happening before I updated to 10.11, but has become a massive issue, I can't use jq at all because of it.

I also have the same issue with iTerm2.


Solution 1:

So I have found the cause in my .inputrc

[[ $- = *i* ]] && bind TAB:menu-complete

I don't know why it's the cause of the problem but it was resolved by removing this, and to be honest I am not even sure what the reason for this being there was

if anyone knows the reason this causes it please feel free to answer and I will accept that answer over this