Lines 4409-4418
_rcs()
Link Here
|
4409 |
|
4409 |
|
4410 |
for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do |
4410 |
for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do |
4411 |
file=${COMPREPLY[$i]##*/} |
4411 |
file=${COMPREPLY[$i]##*/} |
4412 |
file=${file%,v} |
|
|
4413 |
dir=${COMPREPLY[$i]%RCS/*} |
4412 |
dir=${COMPREPLY[$i]%RCS/*} |
4414 |
COMPREPLY[$i]=$dir$file |
4413 |
COMPREPLY[$i]=$dir$file |
4415 |
done |
4414 |
done |
|
|
4415 |
|
4416 |
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -G "$dir/$file*,v" ) ) |
4417 |
|
4418 |
for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do |
4419 |
COMPREPLY[$i]=${COMPREPLY[$i]%,v} |
4420 |
done |
4416 |
|
4421 |
|
4417 |
# default to files if nothing returned and we're checking in. |
4422 |
# default to files if nothing returned and we're checking in. |
4418 |
# otherwise, default to directories |
4423 |
# otherwise, default to directories |