Update the auto-completion function:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 12 10:38:02 2008 +0000 (2008-10-12)
changeset 918819bb22347d4
parent 917 33ade2b7e008
child 919 70f7ea9f910a
Update the auto-completion function:
- be silent in case of errors
- also suggest 'build.'

/trunk/ct-ng.comp | 6 3 3 0 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
ct-ng.comp
     1.1 --- a/ct-ng.comp	Sun Oct 12 10:18:35 2008 +0000
     1.2 +++ b/ct-ng.comp	Sun Oct 12 10:38:02 2008 +0000
     1.3 @@ -6,15 +6,15 @@
     1.4      cur=$(_get_cword)
     1.5      prev=${COMP_WORDS[COMP_CWORD-1]}
     1.6  
     1.7 -    samples=$(${COMP_WORDS[0]} list-samples)
     1.8 +    samples=$(${COMP_WORDS[0]} list-samples 2>/dev/null)
     1.9      show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;')
    1.10  
    1.11 -    steps=$(${COMP_WORDS[0]} list-steps |awk '$1 == "-" { print $2; }')
    1.12 +    steps=$(${COMP_WORDS[0]} list-steps 2>/dev/null |awk '$1 == "-" { print $2; }')
    1.13      start_steps=$(echo "${steps}" |sed -r -e 's/(^| )/\1+/;')
    1.14      stop_steps=$(echo "${steps}" |sed -r -e 's/(^| )/+\1/;')
    1.15  
    1.16      actions='config menuconfig oldconfig saveconfig
    1.17 -             list-samples build list-steps regtest regtest-local
    1.18 +             list-samples build build. list-steps regtest regtest-local
    1.19               regtest-global clean distclean wiki-samples updatetools
    1.20               tarball'
    1.21