diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-09-16 17:29:17 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-09-16 17:29:17 +0000 |
commit | 88adedc1d57d62b2203ada133b5507437227c594 (patch) | |
tree | f4aaa80f1026433413451ad77a8ab5fdb457ad5d /Completion | |
parent | bb9a84d4c43cabee8ca1eb37b09eee03d5283ded (diff) | |
download | zsh-88adedc1d57d62b2203ada133b5507437227c594.tar.gz zsh-88adedc1d57d62b2203ada133b5507437227c594.tar.xz zsh-88adedc1d57d62b2203ada133b5507437227c594.zip |
17542: Thomas Stromberg: most systems don't have /etc/mtab
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_mount | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount index f8bab52e8..e1f32f392 100644 --- a/Completion/Unix/Command/_mount +++ b/Completion/Unix/Command/_mount @@ -734,17 +734,17 @@ udevordir) local dev_tmp mp_tmp mline case "$OSTYPE" in - freebsd*) + linux*|irix*) + tmp=( "${(@f)$(< /etc/mtab)}" ) + dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) + mp_tmp=( "${(@)${(@)tmp#* }%% *}" ) + ;; + *) /sbin/mount | while read mline; do dev_tmp=( $dev_tmp $mline[(w)1] ) mp_tmp=( $mp_tmp $mline[(w)3] ) done ;; - *) - tmp=( "${(@f)$(< /etc/mtab)}" ) - dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) - mp_tmp=( "${(@)${(@)tmp#* }%% *}" ) - ;; esac _alternative \ |