projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c882b8
)
zsh: don't mention /etc/mtab
author
Lennart Poettering
<lennart@poettering.net>
Fri, 9 Oct 2015 15:15:24 +0000
(17:15 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 9 Oct 2015 15:20:32 +0000
(17:20 +0200)
The file is obsolete, use /proc/self/mounts instead.
Also, yuck, the code is so awful...
shell-completion/zsh/_udevadm
patch
|
blob
|
history
diff --git
a/shell-completion/zsh/_udevadm
b/shell-completion/zsh/_udevadm
index e5d252c818bed6ae223fd6f9b0dbcbf545270dbb..bb23e64d24fda5fd8f294bd57ec7875622f94dde 100644
(file)
--- 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#* }%% *}" )