From 288c1eb3c1ce0337ceea10da9ce915601990bd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 2 May 2011 10:40:36 +0300 Subject: [PATCH] _parse_help: Fix handling of commands with paths. Regression from commit a614028a9b7e22b76f609a49dc7cfc2b8ad0abcd, need to eval cmd before setting IFS to avoid it being split. --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 8ea96859..591e1da5 100644 --- a/bash_completion +++ b/bash_completion @@ -753,8 +753,8 @@ _init_completion() # _parse_help() { - local line i option option2 IFS=$' \t\n,/|' eval local cmd=$1 + local line i option option2 IFS=$' \t\n,/|' "$cmd" ${2:---help} 2>&1 | while read line; do [[ $line == *([ $'\t'])-* ]] || continue