[pacman-contrib] [PATCH 1/2] paccache: Enable nullglob

Johannes Löthberg johannes at kyriasis.com
Wed Oct 12 10:19:09 UTC 2016


Fixes FS#48818.

Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
 src/paccache.sh.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/paccache.sh.in b/src/paccache.sh.in
index e34f684..643bb38 100644
--- a/src/paccache.sh.in
+++ b/src/paccache.sh.in
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+# Expand to nothing if there are no matches
+shopt -s nullglob
 shopt -s extglob
 
 declare -r myname='paccache'
-- 
2.10.0


More information about the pacman-contrib mailing list