From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17663 invoked by alias); 14 Dec 2014 17:47:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19531 Received: (qmail 22439 invoked from network); 14 Dec 2014 17:47:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=B94OC1pJ c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=cJInV_uNRJ7ZUN36VSEA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141214094722.ZM23704@torch.brasslantern.com> Date: Sun, 14 Dec 2014 09:47:22 -0800 In-reply-to: Comments: In reply to Mikael Magnusson "Re: umount completion context and tags" (Dec 14, 6:13pm) References: <20141214131541.GB1489@rikku> <141214085310.ZM23615@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: umount completion context and tags MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 14, 6:13pm, Mikael Magnusson wrote: } } I see now that the gentoo /etc/filesystems has some lines in it with } comments, and the completer doesn't remove them. How about instead of } this, } } fss+=( ${$( usbfs /proc/bus/usb usbfs rw 0 0 } > } > so _mount assigns } > } > dev_tmp=( /dev/hda2 usbfs /dev/hda1 sunrpc ) } > } > which subsquently interprets everything that doesn't start with a slash } > as a device label. } } I'm not even sure here what a device label is meant to be. I don't } suppose it's something mounted by LABEL=foo? I don't really know either. However, it's clear that in this case "usbfs" and "sunrpc" are virtual devices (since they appear in the first column of the mtab line) so perhaps "label" is just a misnomer? Either that, or _mount needs to interpret mtab positionally rather than by guessing that slashes are devices and everything else is a label. The "none" device (or label, or whatever) is filtered out. } My mount manpage mentions } partition labels, filesystem labels (and I know these are only } readable by root), and also 'those that are labeled "nodev"' appears. The only use of "nodev" in _mount is in _arguments arguments.