Bash Version: 2.04
Patch Level: 0
Release Status: release
Description:
According to the documentation,
http://www.gnu.org/manual/bash/html_chapter/bashref_5.html#IDX204
If the last character of the alias value is a space or tab character,
then the next command word following the alias is also checked for
alias expansion.
It appears that this property is sticky, that is, if the alias first
is assigned a value that ends on a space, and then another value,
without a space, the secondary expansion continues as before.
The expansion of an alias depends thus on its history, not only on its
current value.
Repeat-By: bash --norc
bash-2.04$ alias foo='echo'
bash-2.04$ foo foo
foo
bash-2.04$ alias foo='echo '
bash-2.04$ alias foo='echo'
bash-2.04$ foo foo
echo
bash-2.04$