Similar question found here. In summation:
The space at the end is a preference that is set using compopt. You can see the current behaviour with:
compopt
And you can change the behavior by running:
compopt +/-o
Similar question found here. In summation:
The space at the end is a preference that is set using compopt. You can see the current behaviour with:
compopt
And you can change the behavior by running:
compopt +/-o