When trying to install SP2 for Altera NIOS II i've got this error:
$ ./install_patch
bindkey: Command not found.
Illegal variable name.
To resolve that problem open "install_patch" script and remove these lines:
bindkey "^[[3~" delete-char
set KBS=`tput kbs`
if (${%KBS} == 1) then
stty erase $KBS
endif