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

Re: Bug#579117: zsh: lsusb -s completion error



On Sun, Apr 25, 2010 at 04:30:14PM +0200, Mikael Magnusson wrote:
> Yeah, the .ids file is uncompressed, and the .ids.gz file is gzipped.

I'm going to presume that everyone has switched to uncompressed due
to HAL craziness, and do this

Index: Completion/Linux/Command/_lsusb
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_lsusb,v
retrieving revision 1.1
diff -u -r1.1 _lsusb
--- Completion/Linux/Command/_lsusb	30 Sep 2007 11:39:56 -0000	1.1
+++ Completion/Linux/Command/_lsusb	25 Apr 2010 22:13:15 -0000
@@ -25,7 +25,7 @@
         _lsusb_devices[${pair}]="$match[2]"
       ;;
     esac
-  done < <(zcat /var/lib/usbutils/usb.ids)
+  done < /var/lib/usbutils/usb.ids
 fi
 
 compadd -k _lsusb_devices



Messages sorted by: Reverse Date, Date, Thread, Author