Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
functions/Completion/Linux/_modutils
- X-seq: zsh-workers 25021
- From: sergio <zsh@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: functions/Completion/Linux/_modutils
- Date: Tue, 13 May 2008 20:19:06 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hello.
When i'm not root modprobe is not in my path, so
in case "all_modules)" "modules" will be empty:
all_modules)
modules=( ${${${${(f)"$(_call_program modules
${(M)words[1]##*/}modprobe -l 2>/dev/null)"}:#}##*/}%%.*} )
words --- what this?
with
modules=( ${${${${(f)"$(_call_program modules
${(M)words[1]##*/}/sbin/modprobe -l 2>/dev/null)"}:#}##*/}%%.*} )
all works fine
--
sergio
Messages sorted by:
Reverse Date,
Date,
Thread,
Author