zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#579117: zsh: lsusb -s completion error
       [not found] <20100425131041.20113.30011.reportbug@localhost>
@ 2010-04-25 13:49 ` Clint Adams
  2010-04-25 14:17   ` Mikael Magnusson
  0 siblings, 1 reply; 8+ messages in thread
From: Clint Adams @ 2010-04-25 13:49 UTC (permalink / raw)
  To: arno renevier, 579117; +Cc: zsh-workers

On Sun, Apr 25, 2010 at 03:10:41PM +0200, arno renevier wrote:
> when trying to use completion after typing lsusb -s
> I get following error:
> gzip: /var/lib/usbutils/usb.ids: not in gzip format
> 
> This is probably related to bug #448803

Anyone have an idea better than using a zstyle to avoid zcat?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 13:49 ` Bug#579117: zsh: lsusb -s completion error Clint Adams
@ 2010-04-25 14:17   ` Mikael Magnusson
  2010-04-25 14:27     ` Clint Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Magnusson @ 2010-04-25 14:17 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers

On 25 April 2010 15:49, Clint Adams <schizo@debian.org> wrote:
> On Sun, Apr 25, 2010 at 03:10:41PM +0200, arno renevier wrote:
>> when trying to use completion after typing lsusb -s
>> I get following error:
>> gzip: /var/lib/usbutils/usb.ids: not in gzip format
>>
>> This is probably related to bug #448803
>
> Anyone have an idea better than using a zstyle to avoid zcat?

On my system (gentoo), the file is /usr/share/misc/usb.ids. (there's
both the .ids and .ids.gz there).

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 14:17   ` Mikael Magnusson
@ 2010-04-25 14:27     ` Clint Adams
  2010-04-25 14:30       ` Mikael Magnusson
  0 siblings, 1 reply; 8+ messages in thread
From: Clint Adams @ 2010-04-25 14:27 UTC (permalink / raw)
  To: Mikael Magnusson; +Cc: zsh-workers, 579117

On Sun, Apr 25, 2010 at 04:17:49PM +0200, Mikael Magnusson wrote:
> > Anyone have an idea better than using a zstyle to avoid zcat?
> 
> On my system (gentoo), the file is /usr/share/misc/usb.ids. (there's
> both the .ids and .ids.gz there).

So the .ids is also uncompressed on Gentoo?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 14:27     ` Clint Adams
@ 2010-04-25 14:30       ` Mikael Magnusson
  2010-04-25 22:15         ` Clint Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Magnusson @ 2010-04-25 14:30 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers, 579117

On 25 April 2010 16:27, Clint Adams <clint@zsh.org> wrote:
> On Sun, Apr 25, 2010 at 04:17:49PM +0200, Mikael Magnusson wrote:
>> > Anyone have an idea better than using a zstyle to avoid zcat?
>>
>> On my system (gentoo), the file is /usr/share/misc/usb.ids. (there's
>> both the .ids and .ids.gz there).
>
> So the .ids is also uncompressed on Gentoo?

Yeah, the .ids file is uncompressed, and the .ids.gz file is gzipped.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 14:30       ` Mikael Magnusson
@ 2010-04-25 22:15         ` Clint Adams
  2010-04-25 22:30           ` Mikael Magnusson
  0 siblings, 1 reply; 8+ messages in thread
From: Clint Adams @ 2010-04-25 22:15 UTC (permalink / raw)
  To: zsh-workers, 579117

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 22:15         ` Clint Adams
@ 2010-04-25 22:30           ` Mikael Magnusson
  2010-04-25 22:36             ` Clint Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Magnusson @ 2010-04-25 22:30 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers

On 26 April 2010 00:15, Clint Adams <schizo@debian.org> wrote:
> 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

That still doesn't solve the issue of the file being in another
directory though...

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 22:30           ` Mikael Magnusson
@ 2010-04-25 22:36             ` Clint Adams
  2010-04-25 22:39               ` Clint Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Clint Adams @ 2010-04-25 22:36 UTC (permalink / raw)
  To: zsh-workers

On Mon, Apr 26, 2010 at 12:30:29AM +0200, Mikael Magnusson wrote:
> That still doesn't solve the issue of the file being in another
> directory though...

Nor does this.

Index: Completion/Linux/Command/_lsusb
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_lsusb,v
retrieving revision 1.2
diff -u -r1.2 _lsusb
--- Completion/Linux/Command/_lsusb	25 Apr 2010 22:19:19 -0000	1.2
+++ Completion/Linux/Command/_lsusb	25 Apr 2010 22:35:47 -0000
@@ -25,7 +25,7 @@
         _lsusb_devices[${pair}]="$match[2]"
       ;;
     esac
-  done < /var/lib/usbutils/usb.ids
+  done < /usr/share/misc/pci.ids
 fi
 
 compadd -k _lsusb_devices


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug#579117: zsh: lsusb -s completion error
  2010-04-25 22:36             ` Clint Adams
@ 2010-04-25 22:39               ` Clint Adams
  0 siblings, 0 replies; 8+ messages in thread
From: Clint Adams @ 2010-04-25 22:39 UTC (permalink / raw)
  To: zsh-workers

On Sun, Apr 25, 2010 at 10:36:24PM +0000, Clint Adams wrote:
> +  done < /usr/share/misc/pci.ids

ARGH


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-25 22:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20100425131041.20113.30011.reportbug@localhost>
2010-04-25 13:49 ` Bug#579117: zsh: lsusb -s completion error Clint Adams
2010-04-25 14:17   ` Mikael Magnusson
2010-04-25 14:27     ` Clint Adams
2010-04-25 14:30       ` Mikael Magnusson
2010-04-25 22:15         ` Clint Adams
2010-04-25 22:30           ` Mikael Magnusson
2010-04-25 22:36             ` Clint Adams
2010-04-25 22:39               ` Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).