<div dir="ltr"><div>Thanks for the explanations<br></div><div>I'll use autoload -U and remove the alias, which was not a good idea at the beginning<br></div><div>Have a nice day<br><br></div><div>Raphael<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-03 14:23 GMT+01:00 Daniel Shahaf <span dir="ltr"><<a href="mailto:danielsh@apache.org" target="_blank">danielsh@apache.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Control: severity -1 normal<br>
Control: forwarded -1 <a href="https://github.com/zsh-users/zsh-syntax-highlighting/issues/252" rel="noreferrer" target="_blank">https://github.com/zsh-users/<wbr>zsh-syntax-highlighting/<wbr>issues/252</a><br>
<br>
raphael truc wrote on Thu, Nov 03, 2016 at 10:27:35 +0100:<br>
> Indeed, I noticed I had aliased long time ago ! to sudo (which I forgot)<br>
<br>
This is an artifact of using `source zsh-syntax-highlighting.zsh` to<br>
load zsh-syntax-highlighting; using `autoload -U` would avoid aliases<br>
in the calling scope being applied.  There already is an upstream issue<br>
for that: <a href="https://github.com/zsh-users/zsh-syntax-highlighting/issues/252" rel="noreferrer" target="_blank">https://github.com/zsh-users/<wbr>zsh-syntax-highlighting/<wbr>issues/252</a><br>
<br>
Given that your alias changes the meaning of a shell syntax construct,<br>
it would break _any_ plugin that's run by `source` [which is most of<br>
them], not just z-sy-h.  Hence I'm demoting the severity.<br>
<br>
I'm afraid the upstream fix is not entirely trivial, it is not scheduled<br>
yet.  In the meantime, the workarounds available to you are either to<br>
move the «!» inside the parentheses, or to define the alias _after_<br>
loading z-sy-h.<br>
<br>
Cheers,<br>
<br>
Daniel<br>
</blockquote></div><br></div>