hello,everyone! I read bash_completion, and is confused for below code:
1348 # try to allow variable completion 1349 if [[ "$cur" == ?(\\)\$* ]]; then 1350 COMPREPLY=( $( compgen -v -P '$' -- "${cur#?(\\)$}" ) ) 1351 return 0 1352 fi I don't know what's the exact meaning of "?(\\)\$*" so I try the test below: $ echo ?(\\)\$* bash: syntax error near unexpected token `(' $ source /etc/bash_completion $ echo ?(\\)\$* ?(\)$* can you kindly tell me what's the difference from before "source /etc/bash_completion" to after "source /etc/bash_completion" for "?(\\)\$*"? Thank you for your kindly reply! best regards! 2010-08-24 zhengkarl
_______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel