Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: umount completion context and tags
- X-seq: zsh-users 19531
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: umount completion context and tags
- Date: Sun, 14 Dec 2014 09:47:22 -0800
- In-reply-to: <CAHYJk3Q7qFoELxSGMnDu7Z4=if9kh6g9_wbYMOGgG++fzuztqA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20141214131541.GB1489@rikku> <CAHYJk3T=_C8gCkt-wbX5XA++n2CXf90UyR9AV92ZEknW2dOF9A@mail.gmail.com> <141214085310.ZM23615@torch.brasslantern.com> <CAHYJk3Q7qFoELxSGMnDu7Z4=if9kh6g9_wbYMOGgG++fzuztqA@mail.gmail.com>
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+=( ${$(</etc/filesystems)#\*} )
}
} we use this?
}
} fss+=( ${${${(f)"$(</etc/filesystems)"}:#\#*}#\*} )
Seems reasonable to me.
} > 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author