How do I access a reserved word if an alias is hiding it?
Here if works normally:
% if : ; then echo true; fi
true
After aliasing if:
% alias if=date
% if : ; then echo true; fi
zsh: parse error near `then'
Prefixing with builtin or \ doesn't help:
% builtin if : ; then echo true; fi
zsh: parse error near `then'
% \if : ; then echo true; fi
zsh: parse error near `then'
How do I access a reserved word in the pathological case that it hidden by an alias?
ifis a builtin incshbut not in Bourne Shell compatible shells.=doesn't help in either shell.