Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug/Request: _umountable should not depend on /etc/mtab
- X-seq: zsh-users 26103
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Norbert Lange" <nolange79@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Bug/Request: _umountable should not depend on /etc/mtab
- Date: Fri, 16 Oct 2020 13:35:35 +0000
- Archived-at: <https://zsh.org/users/26103>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-10/58433fbc-e91c-4ed5-8f36-104a1b6a1ee9%40www.fastmail.com>
- Authentication-results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=gcbj4IJ LtlWY4elqiRntGaiXKnijf1kDPNWggUh9hVo=; b=WPPoT/Vrq25DU2//PtjgZpY i1ahVcMsKczMV9Tnq/CIUoqnmoqjhkDmIToUMzB5idypMqdF7GgSQymTJ9MKRpP2 qoC6+rEbnJOvPbCMT+dAGJNjzN2mhMbVudjcOagWWGuny7+kraoJzlrsRPeBuq1i MCDPc+seHaIxkPnwK4zesgA6RjqUnxLFptKrluivAX46+GzNleR31rMBL1yz9bRt KFZGi6iiSzvEvE7xe/NqFjU9neg54FB/qXs6i8UbJnIJEsDJ41FVyHkzZtS7TO2y gv73WUXIappg9LnDNuc9YXfZUmUT6xvBZEXEy6mEw1KJ3WZ4+i7+wC748Vf6ZBQ= =
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=gcbj4I JLtlWY4elqiRntGaiXKnijf1kDPNWggUh9hVo=; b=Me6dSAGId49mtFCE5KSchN N3epcdzrhnQRbjnb6ZMi9kmzd3GfT61O8ZcCTrVbM2O71BqvPfUeBlmw+XWo7EyB q1OsBxx9sKTKhdSlewOwzeVTap12sK5Ikt6JKOB8fmYA+N1wZcj8QVRQsuT37AfP Qaxurdv9cRYybRsaXwapV15HQjp6T53/2XUoONqUSVuGuZ0uqZh99mfKBXtLGWGK EIlPmVHer3ettZ4JGdzehCbfN877C6toBqDHn2MG/cUvjkfcrJL9CbEgm5S/4xNY yEkR1+xLlbRbg0hKqcf2RbMtTjkxaYZtUfsWHGG3h2zDwwEa9dcOaJqDOvgZksVw ==
- In-reply-to: <CADYdroORkN84P+eEdDBnKVTo-eY6A9C0ZEj53Y5=m9ihaW0CqQ@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <CADYdroORkN84P+eEdDBnKVTo-eY6A9C0ZEj53Y5=m9ihaW0CqQ@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
Norbert Lange wrote on Fri, 16 Oct 2020 10:14 +00:00:
> Hello,
>
> On Linux, /etc/mtab is ancient history, please use /proc/self/mounts.
> Atleast the _unmountable function is affected.
> (its easy to add an compatibility symlink, but this should not be necessary)
Can we just s#/etc/mtab#/proc/self/mounts#g? I.e., what Linux systems
_don't_ have /proc/self/mounts? (New systems with custom kernel
configs? Old systems? _How_ old?)
Failing that, the code will have to use /proc/self/mounts if it exists
and /etc/mtab otherwise.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author