MusicPlayerDaemon / mpc

Command-line client for MPD
GNU General Public License v2.0
191 stars 36 forks source link

Fix bash completion to work properly when set -u is in effect #63

Closed d-e-s-o closed 3 years ago

d-e-s-o commented 3 years ago

When set -u is in effect, i.e., expansion of undefined variables causes an exit of the current shell, the mpc completion script seizes to work. This change fixes the issue by guarding the access to the command variable accordingly.