Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mount and linux
- X-seq: zsh-workers 16005
- From: Clint Adams <clint@xxxxxxx>
- To: Chmouel Boudjnah <chmouel@xxxxxxxxxxxxxxxx>
- Subject: Re: mount and linux
- Date: Wed, 10 Oct 2001 15:25:43 -0400
- Cc: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <m3669nip7i.fsf@xxxxxxxxxxxxxxxxxxxxxxx>; from chmouel@xxxxxxxxxxxxxxxx on Wed, Oct 10, 2001 at 03:45:05PM +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <001c01c1516a$72a84c60$21c9ca95@xxxxxxxxxxxxxx> <m3669nip7i.fsf@xxxxxxxxxxxxxxxxxxxxxxx>
> static char
> *magic_known[] = {
> "adfs", "bfs", "cramfs", "ext", "ext2", "ext3",
> "hfs", "hpfs", "iso9660", "minix", "ntfs",
> "qnx4", "reiserfs", "romfs", "swap", "udf", "ufs",
> "vxfs", "xfs", "xiafs"
> };
>
> since they are auto detected by magic number....
It might be nicer to use the original array, /proc/filesystems,
and /etc/filesystems all with different tags.
Index: Completion/Unix/Command/_mount
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_mount,v
retrieving revision 1.10
diff -u -r1.10 _mount
--- Completion/Unix/Command/_mount 2001/10/08 15:08:02 1.10
+++ Completion/Unix/Command/_mount 2001/10/10 19:23:23
@@ -559,11 +559,13 @@
':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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author