3 local cur cur_d castor_dirs
6 cur="${COMP_WORDS[COMP_CWORD]}"
9 castor_dirs=$(nsls "$cur_d" 2> /dev/null|while read f; do echo "$cur_d/$f"; done)
11 COMPREPLY=( $(compgen -f "$cur") $(compgen -W "/castor $castor_dirs" -- "$cur") )
14 complete -o filenames -o nospace -F _castor nsls rfcat rfchmod rfcomm rfcp rfdir rfmkdir rfrename rfrm rfstat