From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18654 invoked from network); 26 Aug 2009 22:03:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 26 Aug 2009 22:03:51 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 93147 invoked from network); 26 Aug 2009 22:03:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Aug 2009 22:03:45 -0000 Received: (qmail 1521 invoked by alias); 26 Aug 2009 22:03:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27232 Received: (qmail 1494 invoked from network); 26 Aug 2009 22:03:38 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Aug 2009 22:03:38 -0000 Received: from smtp.benizi.com (www5.pairlite.com [64.130.10.15]) by bifrost.dotsrc.org (Postfix) with ESMTP id 24A2080450D1 for ; Thu, 27 Aug 2009 00:02:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by smtp.benizi.com (Postfix) with ESMTPSA id B0ECE2AFD6; Wed, 26 Aug 2009 18:03:32 -0400 (EDT) Date: Wed, 26 Aug 2009 18:03:32 -0400 (EDT) From: "Benjamin R. Haskell" To: zsh-workers@sunsite.dk Subject: 'loop' vs 'loop=device' in _mount Message-ID: User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV 0.94.2/9744/Wed Aug 26 19:52:36 2009 on bifrost X-Virus-Status: Clean When using completion for mount options, I often run into the annoyance that the 'loop' option prompts for the loopback devide to use. Really, though, one needn't specify any device in particular... Says the man-page for 'mount': ''' If no explicit loop device is mentioned (but just an option `-o loop' is given), then mount will try to find some unused loop device and use that. ''' I'll likely just patch my own completion script to change: Completion/Unix/Command/_mount, line 325: - 'loop[use loopback device]:loopback device:_files' + 'loop[use loopback device]' since I couldn't tell how to incorporate an '-o' option that accepts an optional argument. But, I also figured I'd mention it here in case someone with better completion-fu could work out a simple patch to correct the behavior (which is a bug for certain values of bug). Best, Ben