From 71807594e7d7ce843906e5e891a01d0d0a7764f8 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Thu, 24 Jan 2002 20:20:31 +0000 Subject: [PATCH] make _filedir_xspec() use the basename of commands when looking for matching exclusion specs (acroread worked, whereas /opt/bin/acroread did not) --- bash_completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index 747f1d81..db9512c5 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ # # # @@ -1638,7 +1638,7 @@ _filedir_xspec() _expand || return 0 # get first exclusion compspec that matches this command - xspec=$( sed -ne '/ '$1'/{p;q;}' /etc/bash_completion ) + xspec=$( sed -ne '/ '${1##*/}'/{p;q;}' /etc/bash_completion ) # prune to leave nothing but the -X spec xspec=${xspec#*-X } xspec=${xspec%% *}