diff options
Diffstat (limited to 'app-shells/bash-completion/files/20041017-rcs.diff')
-rw-r--r-- | app-shells/bash-completion/files/20041017-rcs.diff | 19 |
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 |