_cd() was no longer completing relative to $CDPATH

This commit is contained in:
ianmacd 2002-01-06 03:21:04 +00:00
parent 8b5de2fb80
commit 1f2e4f47e6

View File

@ -2,7 +2,7 @@
# #
# <![CDATA[ # <![CDATA[
# #
# $Id: bash_completion,v 1.47 2002/01/05 21:04:01 ianmacd Exp $ # $Id: bash_completion,v 1.48 2002/01/06 04:21:04 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -1268,7 +1268,7 @@ _cd()
[ ${#dirs[@]} ] && COMPREPLY=( ${COMPREPLY[@]} ${dirs[@]#$i/}) [ ${#dirs[@]} ] && COMPREPLY=( ${COMPREPLY[@]} ${dirs[@]#$i/})
done done
fi fi
COMPREPLY=( $( compgen -d $cur ) ) COMPREPLY=( ${COMPREPLY[@]} $( compgen -d $cur ) )
return 0 return 0
} }