# HG changeset patch # User "Yann E. MORIN" # Date 1223807882 0 # Node ID 819bb22347d47be4212c07d9727e821f944fdf7e # Parent 33ade2b7e00811eec85314f0b01838f0c79dfea3 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(-) diff -r 33ade2b7e008 -r 819bb22347d4 ct-ng.comp --- a/ct-ng.comp Sun Oct 12 10:18:35 2008 +0000 +++ b/ct-ng.comp Sun Oct 12 10:38:02 2008 +0000 @@ -6,15 +6,15 @@ cur=$(_get_cword) prev=${COMP_WORDS[COMP_CWORD-1]} - samples=$(${COMP_WORDS[0]} list-samples) + samples=$(${COMP_WORDS[0]} list-samples 2>/dev/null) show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;') - steps=$(${COMP_WORDS[0]} list-steps |awk '$1 == "-" { print $2; }') + steps=$(${COMP_WORDS[0]} list-steps 2>/dev/null |awk '$1 == "-" { print $2; }') start_steps=$(echo "${steps}" |sed -r -e 's/(^| )/\1+/;') stop_steps=$(echo "${steps}" |sed -r -e 's/(^| )/+\1/;') actions='config menuconfig oldconfig saveconfig - list-samples build list-steps regtest regtest-local + list-samples build build. list-steps regtest regtest-local regtest-global clean distclean wiki-samples updatetools tarball'