FS#24708 - [zsh] modutils completion

Attached to Project: Arch Linux
Opened by drexya (drexya) - Monday, 13 June 2011, 01:39 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 19 June 2011, 11:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Last zsh update break modprobe & modinfo completion because of some modifications in '/usr/share/zsh/functions/Completion/Linux/_modutils' (line 110):

modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko)(.:t:r) ) # in zsh 4.3.12 (last version)

modules=( $modules_dir/$kver/(*~(source|build))/**/*(.:t:r) ) # in zsh 4.3.11 (previous)


modifying this line like that solves 2 problems, zsh finds the modules and remove all the suffixes in the completion menu :

modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz)(.:t:r:r) )

Discussion in this thread : https://bbs.archlinux.org/viewtopic.php?id=120666

PS : sorry for my poor English.



This task depends upon

Closed by  Pierre Schmitz (Pierre)
Sunday, 19 June 2011, 11:08 GMT
Reason for closing:  Fixed
Comment by Pierre Schmitz (Pierre) - Monday, 13 June 2011, 12:32 GMT
If you like you should report this upstream to the zsh project as compressed kernel modules are not specific to Arch.
Comment by drexya (drexya) - Monday, 13 June 2011, 15:16 GMT
Ok, done. However bug tracker at sourceforge seems to be dead (no response, no task assigned...), I'll submit a patch if nothing happens.
Comment by Greg (dolby) - Monday, 13 June 2011, 17:43 GMT
Try sending a patch at zsh-workers@zsh.org
Comment by drexya (drexya) - Sunday, 19 June 2011, 03:29 GMT Comment by Pierre Schmitz (Pierre) - Sunday, 19 June 2011, 11:08 GMT
Thanks a lot. I'll apply that patch to our package for now.

Loading...