>From db39fdf5e5180efd52a997353760b899abffdcd5 Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Mon, 25 Jun 2012 15:27:20 +0200 Subject: [PATCH] bash completion: bug fix for --list= When I wanted to avoid ccompletion for --l= if --list is not the only option starting with --l, I introduced a bug, preventing --list=h to be completed to --list=hidden-options for the contest edition. This patch fixes that bug --- run/john.bash_completion | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/run/john.bash_completion b/run/john.bash_completion index 85400c7..eee86ba 100644 --- a/run/john.bash_completion +++ b/run/john.bash_completion @@ -571,7 +571,7 @@ _john() -?(-)l?(i|is|ist)+(=|:)*) if [[ "${hidden}" == *--list=* || "${valopts}" == *--list=* ]] ; then #meanwhile, there can be more than one option name starting with l... - if [[ "${cur#*[=:]}" != *i* ]] ; then + if [[ "${cur#*l}" == [=:]* ]] ; then if [[ `echo "${valopts}"|grep -c "^-*${cur%[=:]*}"` -ne 1 ]] ; then return 0 fi -- 1.7.7.6