#773759 "filenames: unbound variable" in bash_completion

Package:
desktop-file-utils
Source:
desktop-file-utils
Description:
Utilities for .desktop files
Submitter:
Ken T Takusagawa
Date:
2014-12-22 23:54:07 UTC
Severity:
normal
#773759#5
Date:
2014-12-22 23:49:56 UTC
From:
To:
The bash_completion scriptlet for desktop-file-validate does
not check if the variable "filenames" is unset.  This
results in a warning if running in a shell with "set -u".

One way to replicate the problem is to have "set -u" in
one's ~/.bashrc, then log in through ssh.  There will be an
error message "-bash: filenames: unbound variable"
immediately after the MOTD.

The attached patch fixes the problem.