summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-01-02 16:13:44 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-01-02 16:13:44 +0000
commit477fe0fe0fd98e944473624b4c79ddd6601a309c (patch)
tree7308453172f19ef95bd260a4eef4962188ff4c17 /app-shells/bash-completion/files
parentAdded ~ppc64 to KEYWORDS (diff)
downloadhistorical-477fe0fe0fd98e944473624b4c79ddd6601a309c.tar.gz
historical-477fe0fe0fd98e944473624b4c79ddd6601a309c.tar.bz2
historical-477fe0fe0fd98e944473624b4c79ddd6601a309c.zip
Added 20041017-rcs.diff which fixes a rcs completion issue (see bug 75253); Thanks to Ed Catmur <ed@catmur.co.uk> for the patch. Waiting on a few gentoo-bashcomp bugs to be closed before revbumping to r4.
Diffstat (limited to 'app-shells/bash-completion/files')
-rw-r--r--app-shells/bash-completion/files/20041017-rcs.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-shells/bash-completion/files/20041017-rcs.diff b/app-shells/bash-completion/files/20041017-rcs.diff
new file mode 100644
index 000000000000..75602c017051
--- /dev/null
+++ b/app-shells/bash-completion/files/20041017-rcs.diff
@@ -0,0 +1,19 @@
+--- bash_completion/bash_completion 2004/12/21 21:40:48 1.1
++++ bash_completion/bash_completion 2004/12/21 21:41:49
+@@ -4409,10 +4409,15 @@ _rcs()
+
+ for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do
+ file=${COMPREPLY[$i]##*/}
+- file=${file%,v}
+ dir=${COMPREPLY[$i]%RCS/*}
+ COMPREPLY[$i]=$dir$file
+ done
++
++ COMPREPLY=( "${COMPREPLY[@]}" $( compgen -G "$dir/$file*,v" ) )
++
++ for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do
++ COMPREPLY[$i]=${COMPREPLY[$i]%,v}
++ done
+
+ # default to files if nothing returned and we're checking in.
+ # otherwise, default to directories