>From 5588eded4687c8a561f3d85da846acdf567ba349 Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Thu, 19 Jul 2012 23:50:00 +0200 Subject: [PATCH] Bash completion: convert upper case section names to lower case This didn't work: ./john --list=parameters:Ma[tab] ./john --list=list-data:List.External:APP[tab] Now the section names and subsection names are converted to lower case. (These names are not case sensitive anyway.) --- run/john.bash_completion | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run/john.bash_completion b/run/john.bash_completion index 0c5b47e..c41b9cd 100644 --- a/run/john.bash_completion +++ b/run/john.bash_completion @@ -583,8 +583,8 @@ _john() fi return 0 ;; - -?(-)li?(s|st)+(+(=|:)+([a-z_-]):|:+([a-z._-])=)*([a-z0-9:._-])) - cur=${cur#*[=:]} + -?(-)li?(s|st)+(+(=|:)+([a-z_-]):|:+([a-z._-])=)*([A-Za-z0-9:._-])) + cur=`echo ${cur#*[=:]}|LC_ALL=C tr A-Z a-z` cmd=${cur%[=:]*} prefix="" if [[ "_${cmd}" == _*:* ]] ; then -- 1.7.7.6