I use clipmenu to choose something to paste into terminal that running zsh as shell.
Problem is that zsh will echo error when for example I paste a shell function that contains some # for comments inside that function. I have to manually go back and clear all lines contain #.
System: archlinux/zsh/clipmenu
EDIT: example of function:
test() { # must remove this line manually after paste into zsh's shell <do something> }
zsh: command not found: #extendedgloboption is set or not.