MichaelAquilina / zsh-you-should-use

📎 ZSH plugin that reminds you to use existing aliases for commands you just typed
GNU General Public License v3.0
1.41k stars 44 forks source link

Make entry local to _check_global_aliases #102

Closed xPMo closed 4 years ago

xPMo commented 4 years ago

Another one.

I think the source of the problem is that Zsh behaves like Bash shopt -s lastpipe by default, where the last command list in a pipeline is executed in the current environment:

echo ${var1=set} | read var2
echo ${var1-unset} ${var2-unset}

In Zsh, this prints unset set, but in Bash, this prints unset unset.