summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorianmacd <>2002-02-25 05:54:16 +0000
committerianmacd <>2002-02-25 05:54:16 +0000
commit33582d81ee22a0258eee1a688d2b9c7e4ed5a1d0 (patch)
treead4700c46b4d8a7d87467c76be204b38f3c710f6 /README
parent92f3a2e8fb7c7ab1651096f79cc39adf656dd2b8 (diff)
downloadbash-completion-33582d81ee22a0258eee1a688d2b9c7e4ed5a1d0.tar.gz
- added KNOWN PROBLEMS section with information on cd issue within Makefiles
and compgen errors when passed a parameter that begins with a hyphen
Diffstat (limited to 'README')
-rw-r--r--README32
1 files changed, 31 insertions, 1 deletions
diff --git a/README b/README
index 8c68bd71..f21e0e5b 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-$Id: README,v 1.3 2002/02/20 06:53:33 ianmacd Exp $
+$Id: README,v 1.4 2002/02/25 06:54:16 ianmacd Exp $
INSTALLATION
@@ -57,5 +57,35 @@ Copies of the patches and prepatched versions of bash are available from:
http://www.caliban.org/bash/
+KNOWN PROBLEMS
+--------------
+
+I.
+
+There seems to be some issue with using the bash built-in cd within Makefiles.
+When invoked as /bin/sh within Makefiles, bash seems to have a problem changing
+directory via the cd command. A work-around for this is to define
+SHELL=/bin/bash within your Makefile. This is believed to be a bug in bash.
+
+II.
+
+There may be points along the command line where completion is not supported
+for a given command. Attempting completion at these points may result in a
+usage message for the bash built-in compgen being printed on stderr.
+
+The cause of this is usually that compgen is being passed a parameter for
+completion whose value begins with a hyphen. After variable expansion, compgen
+has no way of knowing that the hyphen option is not an option to itself.
+
+For example, if the completion code for a given command is something like
+'compgen -f "$cur"', where $cur is the current parameter on which you are
+attempting to complete and it expands to "-x", bash will try to execute the
+command 'compgen -f -x', believing that -x is an option to itself, not a string
+upon which to complete.
+
+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.
+
--
Ian Macdonald <ian@caliban.org>