1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

Jörg Sommer: 26451: use globbing to find available modules, now that modprobe -l is deprecated.

This commit is contained in:
Clint Adams 2009-01-29 17:14:53 +00:00
parent 844b8b33d3
commit 4527d0dfff
2 changed files with 5 additions and 2 deletions

View file

@ -7,6 +7,9 @@
* 26483: Completion/Unix/Command/_getfacl,
Completion/Unix/Command/_setfacl: handle SGI's acl programs as well
as Cygwin's.
* Jörg Sommer: 26451: Completion/Linux/Command/_modutils: use
globbing to find available modules, now that modprobe -l is
deprecated.
2009-01-29 Peter Stephenson <pws@csr.com>
@ -11038,5 +11041,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4533 $
* $Revision: 1.4534 $
*****************************************************

View file

@ -78,7 +78,7 @@ case "$state" in
;&
all_modules)
modules=( ${${${${(f)"$(_call_program modules ${(M)words[1]##*/}modprobe -l 2>/dev/null)"}:#}##*/}%%.*} )
modules=( /lib/modules/$(uname -r)/(*~source)/**/*(.:t:r) )
if [[ $state = loadable_modules ]]; then
modules=( ${modules:#(${(j:|:)~${=loaded_modules//_/-}})} )