From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23670 invoked by alias); 17 Jan 2014 02:11:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32267 Received: (qmail 26452 invoked from network); 17 Jan 2014 02:10:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 Message-ID: <52D88C98.9080509@sergio.spb.ru> Date: Fri, 17 Jan 2014 05:51:20 +0400 From: sergio User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.2.0 MIME-Version: 1.0 To: Zsh Hackers' List Subject: [PATCH] modprobe module parameters completion X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit modinfo is not in the default user $path, so % sudo modprobe module doesn't complete anything. diff -Naur zsh-orig/Completion/Linux/Command/_modutils zsh/Completion/Linux/Command/_modutils --- zsh-orig/Completion/Linux/Command/_modutils 2014-01-17 05:45:30.521883787 +0400 +++ zsh/Completion/Linux/Command/_modutils 2014-01-17 05:47:03.161614562 +0400 @@ -127,7 +127,7 @@ _message -e value 'parameter value' else local params - params=( ${${(M)${(f)"$(_call_program module_parameter modinfo "$words[2]" 2>/dev/null)"}:#parm:*}##parm:[[:space:]]##} ) + params=( ${${(M)${(f)"$(_call_program module_parameter /sbin/modinfo "$words[2]" 2>/dev/null)"}:#parm:*}##parm:[[:space:]]##} ) if [[ $#params -eq 0 ]]; then _message -e parameter "This modules doesn't have parameters" else -- sergio.