summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_file_systems2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ff278dbd..17d56a742 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-14  Mikael Magnusson  <mikachu@gmail.com>
+
+	* users/19530: Completion/Unix/Type/_file_systems: Handle
+	commented lines in /etc/filesystems
+
 2014-12-13  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* unposted: Test/D04parameter.ztst: need -f for starting zsh
diff --git a/Completion/Unix/Type/_file_systems b/Completion/Unix/Type/_file_systems
index 3415bb163..4fdeabeff 100644
--- a/Completion/Unix/Type/_file_systems
+++ b/Completion/Unix/Type/_file_systems
@@ -12,7 +12,7 @@ case $OSTYPE in
     [[ -r /proc/filesystems ]] &&
         fss+=( ${$(</proc/filesystems)#nodev} )
     [[ -r /etc/filesystems ]] &&
-        fss+=( ${$(</etc/filesystems)#\*} )
+        fss+=( ${${${(f)"$(</etc/filesystems)"}:#\#*}#\*} )        
   ;;
   osf*) fss=( advfs ufs nfs mfs cdfs ) ;;
   solaris*) fss=( ufs nfs hsfs s5fs pcfs cachefs tmpfs ) ;;