From: Lennart Poettering Date: Fri, 9 Oct 2015 15:15:24 +0000 (+0200) Subject: zsh: don't mention /etc/mtab X-Git-Tag: v228~223^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3ccac01cc548cb3ea38a638b3c0dd5d0bc33cc2;p=thirdparty%2Fsystemd.git zsh: don't mention /etc/mtab The file is obsolete, use /proc/self/mounts instead. Also, yuck, the code is so awful... --- diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm index e5d252c818b..bb23e64d24f 100644 --- a/shell-completion/zsh/_udevadm +++ b/shell-completion/zsh/_udevadm @@ -89,7 +89,7 @@ _udevadm_test-builtin(){ _udevadm_mounts(){ local dev_tmp dpath_tmp mp_tmp mline - tmp=( "${(@f)$(< /etc/mtab)}" ) + tmp=( "${(@f)$(< /proc/self/mounts)}" ) dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) mp_tmp=( "${(@)${(@)tmp#* }%% *}" )