From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14601 invoked by alias); 14 Dec 2014 18:51:20 -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: 19532 Received: (qmail 958 invoked from network); 14 Dec 2014 18:51:19 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Znm1Oof5YYxkLkntakkqASz0wY3zaur8FBo18aHFo10=; b=rDonKiFjogMy3rLYRD+KVicVb7C7xZR4pBosq3Gt9Yrpctfaxts1/2DbDHzyrBNIzw /ehzcVi1YN84M3x8RuAZ6/v3rfcjFYJ+lLSmC3zl9gnbB6e4yr7ULzgwR2CAwKPIQjFe sR9lSkLri2CkQYG4F+JmDJkKYj92Jc7ow3ikaIVlTPFH5+w8pvfHOYMQxKSAKdFRMgXx 3DXjScyWxaE87L8zKLTUNEC96DZaEKVqTFFQRScn98L8Dg6RBUk1VOQOLtl5vdHZ9n0P EQW/GFFyVjumQhm06xdS78hQ7KyrzWPWbRnASitUOdZYHu9jvbosmUJVoiDt05G7jHBB hJSw== MIME-Version: 1.0 X-Received: by 10.50.45.4 with SMTP id i4mr6027873igm.42.1418583075480; Sun, 14 Dec 2014 10:51:15 -0800 (PST) In-Reply-To: <141214094722.ZM23704@torch.brasslantern.com> References: <20141214131541.GB1489@rikku> <141214085310.ZM23615@torch.brasslantern.com> <141214094722.ZM23704@torch.brasslantern.com> Date: Sun, 14 Dec 2014 19:51:15 +0100 Message-ID: Subject: Re: umount completion context and tags From: Mikael Magnusson To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sun, Dec 14, 2014 at 6:47 PM, Bart Schaefer wrote: > 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+=( ${$( } > } we use this? > } > } fss+=( ${${${(f)"$( > Seems reasonable to me. I've commited this, and I'll leave the rest to someone who knows more about things, I think. > } > 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. -- Mikael Magnusson