mirror of
https://github.com/systemd/systemd.git
synced 2024-12-03 23:33:38 +08:00
zsh: don't mention /etc/mtab
The file is obsolete, use /proc/self/mounts instead. Also, yuck, the code is so awful...
This commit is contained in:
parent
2c882b8bfa
commit
b3ccac01cc
@ -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#* }%% *}" )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user