summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorianmacd <>2002-02-25 22:02:41 +0000
committerianmacd <>2002-02-25 22:02:41 +0000
commit6fecbb751cf72e1b4a1c4c9fc60a2ac0b99d326a (patch)
treeb07914f7dbf2956629ac8b86ae80cb8480e8d650 /README
parent8311c8438da4ae78574396a7c4eedaf47c51c53d (diff)
downloadbash-completion-6fecbb751cf72e1b4a1c4c9fc60a2ac0b99d326a.tar.gz
- added section to KNOWN PROBLEMS about have() only checking for commands
in $PATH, so that sudo completion ccan't perform subcompletion for commands in /sbin and other such directories
Diffstat (limited to 'README')
-rw-r--r--README16
1 files changed, 15 insertions, 1 deletions
diff --git a/README b/README
index f21e0e5b..22c3f7d1 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-$Id: README,v 1.4 2002/02/25 06:54:16 ianmacd Exp $
+$Id: README,v 1.5 2002/02/25 23:02:41 ianmacd Exp $
INSTALLATION
@@ -87,5 +87,19 @@ I have endeavoured to trap as many instances of this in the code as possible,
but it is highly likely that others remain. If you receive compgen errors while
attempting completion, please report these incidents to me.
+III.
+
+The have() function is used to conserve memory by only installing completion
+functions for binaries actually present on your system. The current method of
+determining whether or not a binary is present is whether or not it is in your
+$PATH.
+
+This approach has the disadvantage that sudo completion will not be able to
+perform sub-completion on, say, ifconfig if /sbin is not in your path, which,
+as an unprivileged user, it typically isn't.
+
+The work-around for this is to put all directories of binaries for which you
+require completion into your $PATH variable.
+
--
Ian Macdonald <ian@caliban.org>