about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-10-10 19:31:07 +0000
committerClint Adams <clint@users.sourceforge.net>2001-10-10 19:31:07 +0000
commit414f028ed998a0e3f8666bb4bb763104cd4a0b91 (patch)
tree85ca750d2995689ada2218dca4ea99a0f0bdcd0d
parent4d1d676dbaf674ed713ae3ecc3afee216d77e00b (diff)
downloadzsh-414f028ed998a0e3f8666bb4bb763104cd4a0b91.tar.gz
zsh-414f028ed998a0e3f8666bb4bb763104cd4a0b91.tar.xz
zsh-414f028ed998a0e3f8666bb4bb763104cd4a0b91.zip
16005: Completion/Unix/Command/_mount: check /etc/filesystems under Linux.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_mount10
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index fc6b18392..bdf29a700 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-10  Clint Adams  <clint@zsh.org>
+
+	* 16005: Completion/Unix/Command/_mount:
+	check /etc/filesystems under Linux.
+
 2001-10-10  Oliver Kiddle  <opk@zsh.org>
 
 	* 16xxx: acconfig.h, zshconfig.ac, Etc/MACHINES,
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index a5a88f912..f74488267 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -559,11 +559,13 @@ if [[ "$service" = mount ]]; then
       ':dev or dir:->devordir'
       ':mount point:_files -/'
     )
-    fss=( minix ext ext2 xiafs hpfs msdos umsdos vfat proc nfs iso9660
-          smbfs ncpfs affs ufs romfs sysv adfs autofs coda devpts efs
-          hfs ntfs qnx4 smbfs udf ext3 xfs reiserfs )
+    typeset -aU fss
+    fss=( adfs bfs cramfs ext2 ext3 hfs hpfs iso9660 minix ntfs qnx4
+          reiserfs romfs swap udf ufs vxfs xfs xiafs )
     [[ -r /proc/filesystems ]] &&
-        fss=( ${$(</proc/filesystems)#nodev} )
+        fss=( $fss ${$(</proc/filesystems)#nodev} )
+    [[ -r /etc/filesystems ]] &&
+        fss=( $fss ${$(</etc/filesystems)#nodev} )
     ;;
   osf*)
     args=( -s