Package: bash
Version: 3.0-14
Severity: normal
Tags: patch
Package in question: bash_3.0-14_i386.deb
It is rarely that i use the tab completion, but when i do, its mostly
for things like this.
Today i ran across a little problem. When i tried to tab-complete for
interfaces on my laptop computer, trying to bring the wireless card up,
i got this reply: bash: _interfaces: command not found
I then looked through the file (grep -r interfaces /etc/bash_complet*)
to find any references to _interfaces, and didnt find its definition,
only its use.
I then made a backup of my /etc/bash_completion, and changed two lines
that called _interfaces, to call _available_interfaces instead.
Bash interface completion now works as expected.
Here is the patch:
====================================
--- /etc/bash_completion 2005-03-20 13:12:03.000000000 +0100
+++ /etc/bash_completion.old 2005-03-20 12:58:00.000000000 +0100
@@ -2919,7 +2919,7 @@
return 0
;;
-i)
- _interfaces
+ _available_interfaces
return 0
;;
esac
@@ -6745,7 +6745,7 @@
COMPREPLY=( $( compgen -W '-p -d -q -1 -r -lf -pf \
-cf -sf -s -g -n -nw -w' -- $cur ) )
else
- _interfaces
+ _available_interfaces
fi
}
[ "${have:-}" ] && complete -F _dhclient dhclient
====================================
Doc Nielsen <[EMAIL PROTECTED]>
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to
en_US)
Versions of packages bash depends on:
ii base-files 3.1.2 Debian base system miscellaneous f
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii passwd 1:4.0.3-30.10 change and administer password and
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]