From f84ee28f0dd76e00ed6e44d0adcd10a7699676e8 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 3 Oct 2011 14:22:22 -0500 Subject: Alert users when they have entered a completion that doesn't match. --- etc/bash_completion.d/vyatta-op | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index d76874a..83b2050 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -297,6 +297,9 @@ _vyatta_op_invalid_completion () fi args[$i]=$arg let "i+=1" + if [ $[${#COMP_WORDS[@]}+1] -eq $i ];then + echo -ne "\n No completion found with prefix [$arg]" + fi done } -- cgit v1.2.3