about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-12-14 19:46:56 +0100
committerMikael Magnusson <mikachu@gmail.com>2014-12-14 19:48:03 +0100
commit409f069a6af4ac3cf497e9796c0b913b60ad8a21 (patch)
tree25119b8d4753622238cab791fa886bade2125afb /Completion
parent5b855e40bd26a3432c54b2bc89fcb16f603b2e35 (diff)
downloadzsh-409f069a6af4ac3cf497e9796c0b913b60ad8a21.tar.gz
zsh-409f069a6af4ac3cf497e9796c0b913b60ad8a21.tar.xz
zsh-409f069a6af4ac3cf497e9796c0b913b60ad8a21.zip
users/19530: Handle commented lines in /etc/filesystems
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_file_systems2
1 files changed, 1 insertions, 1 deletions
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 ) ;;