Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

functions/Completion/Linux/_modutils



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