Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[linux completion] _modutils patch
- X-seq: zsh-workers 29482
- From: Dos Reis Michel <michmdr@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [linux completion] _modutils patch
- Date: Wed, 15 Jun 2011 16:31:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type; bh=xVLjGkjOWYC+Q40V3TLc0TStTkYhE4CFf0I6vM6Lxtk=; b=LJx5HFApVsUhacxqtl63YJd0nX9HWNWun/XfLTDkHo8EYbpc5xXDJurXCJntqIEBQ4 7V5q2/FmqbJ/dnysNtlj+gEpHGzcM50NYM1DYlFcoZHVkCln5Q4ZwF29jrVBZ62p/bE6 QTmrF5PuTDi32bLEXJDmUM4LB6vownx2mPqqc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=gvI9CBJYGHdZSXdeBbTGbd3a8G3u35rZ+ER23oeBTgVxPXb9641/O3dZr0e8UYazEC ZMnw85Zh8MkBia/P4S1w7jXMGJ65RJxlcrtbDpYdVmqloBh7+XbDzm7xXju1HW+ZVFld NKUN2BRgH0NSyeX2/DeOuQSic3Htd23YczxCw=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
Last zsh-dev version (4.3.12) broke modprobe & modinfo completion when
Linux kernel modules are compressed with gzip (*.ko.gz).
I have made a stupid patch which solves 2 problems in this case, zsh
find the modules and remove all the suffixes in the completion menu.
PS : sorry for my poor English.
Bye.
Michel Dos Reis
--- Completion/Linux/Command/_modutils 2011-06-15 15:31:50.511020521 +0200
+++ Completion/Linux/Command/_modutils_new 2011-06-15 15:56:03.360764426 +0200
@@ -107,7 +107,7 @@
! _retrieve_cache modules-$kver;
then
# 2011-01-02 gi1242: Do we need .o files? Or is .ko enough?
- modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko)(.:t:r) )
+ modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz)(.:t:r:r) )
_store_cache modules-$kver modules
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author