Date: Tue, 28 Oct 2008 18:35:34 -0500 (CDT) From: "Sean C. Farley" <scf@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: des@FreeBSD.org Subject: ports/128450: [PATCH] shells/zsh: mount completion fixes Message-ID: <200810282335.m9SNZYu3032992@thor.farley.org> Resent-Message-ID: <200810290010.m9T0A1IM040573@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128450 >Category: ports >Synopsis: [PATCH] shells/zsh: mount completion fixes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 29 00:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Sean C. Farley >Release: FreeBSD 7.1-PRERELEASE i386 >Organization: >Environment: System: FreeBSD thor.farley.org 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0 r183960M: Thu Oct 16 16:37:00 CDT >Description: Improved the completion of mount for zsh: - Renamed iso9660 to cd9660. - Appended fs to msdos, null and union for the -t option completion. - Added descriptions to the msdosfs options. Added file(s): - files/patch-Completion-Unix-Types-_file_systems These patches were also submitted upstream. Port maintainer (des@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- zsh-4.3.6_7.patch begins here --- diff -ruN --exclude=CVS /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Command-_mount /usr/ports/shells/zsh/files/patch-Completion-Unix-Command-_mount --- /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Command-_mount 2007-08-21 19:06:30.769116000 -0500 +++ /usr/ports/shells/zsh/files/patch-Completion-Unix-Command-_mount 2008-10-28 18:22:46.986080000 -0500 @@ -1,13 +1,105 @@ ---- Completion/Unix/Command/_mount.orig 2006-05-28 13:46:56.000000000 -0500 -+++ Completion/Unix/Command/_mount 2007-08-20 21:22:22.000000000 -0500 -@@ -859,8 +859,8 @@ +--- Completion/Unix/Command/_mount.orig 2008-01-22 04:13:35.000000000 -0600 ++++ Completion/Unix/Command/_mount 2008-10-28 18:23:46.000000000 -0500 +@@ -41,10 +41,10 @@ + + local curcontext="$curcontext" state line expl suf ret=1 + local args deffs=iso9660 tmp typeops=-t _nfs_access _fs_nfs _nfs_ufs \ +-_fs_ufs _fs_efs _fs_iso9660 _fs_cachefs _fs_s5fs _fs_tmpfs _fs_pcfs _fs_hsfs \ +-_fs_advfs _fs_cdfs _fs_affs _fs_ext2 _fs_fat _fs_ext3 _fs_msdos _fs_umsdos \ +-_fs_vfat _fs_hpfs _fs_ntfs _fs_reiserfs _fs_smbfs _fs_xfs _fs_std _fs_devfs \ +-_fs_fdesc _fs_kernfs _fs_linprocfs _fs_procfs ++_fs_ufs _fs_efs _fs_cd9660 _fs_iso9660 _fs_cachefs _fs_s5fs _fs_tmpfs _fs_pcfs \ ++_fs_hsfs _fs_advfs _fs_cdfs _fs_affs _fs_ext2 _fs_fat _fs_ext3 _fs_msdos \ ++_fs_msdosfs _fs_umsdos _fs_vfat _fs_hpfs _fs_ntfs _fs_reiserfs _fs_smbfs \ ++_fs_xfs _fs_std _fs_devfs _fs_fdesc _fs_kernfs _fs_linprocfs _fs_procfs + + typeset -A opt_args + +@@ -527,7 +527,7 @@ + 'swidth[specify stripe width]:size' + ) + ;; +- *freebsd*|dragonfly*) ++ freebsd*|dragonfly*) + _fs_any=( + '(sync)async[do all I/O asynchronously]' + 'current[use current options on already mounted file system]' +@@ -548,12 +548,12 @@ + 'update[change status of already mounted filesystem]' + 'union[cause the namespace at the mount point to appear as the union of the mounted filesystem and the existing directory]' + ) +- _fs_iso9660=( +- 'extatt[enable use of extended attributes]' +- "gens[don't strip version number on files]" +- "joliet[don't use any Joliet extensions]" +- "rrip[don't use any Rockridge extensions]" +- 'strictjoliet[relax checking for Supplementary Volume Descriptor Flags field which is set to a wrong value on some Joliet formatted disks]' ++ _fs_cd9660=( ++ 'extatt[enable the use of extended attributes]' ++ 'gens[do not strip version numbers on files]' ++ 'nojoliet[do not use any Joliet extensions]' ++ 'norrip[do not use any Rockridge extensions]' ++ 'nostrictjoliet[relax checking for Supplementary Volume Descriptor Flags field]' + ) + _fs_std=( + "nodev[don't interpret devices]" +@@ -568,10 +568,13 @@ + _fs_linprocfs=( "$_fs_std[@]" ) + _fs_procfs=( "$_fs_std[@]" ) + _fs_msdos=( +- 'shortnames[]' +- 'longnames[]' +- 'nowin95[]' ++ 'shortnames[force only the old MS-DOS 8.3 style filenames to be visible]' ++ 'longnames[force Windows 95 long filenames to be visible]' ++ 'nowin95[completely ignore Windows 95 extended file information]' + ) ++ if [[ "${OSTYPE}" =~ freebsd.* ]]; then ++ _fs_msdosfs=( "$_fs_msdos[@]" ) ++ fi + ;; + esac + fi +@@ -682,7 +685,7 @@ + deffs=hsfs + typeops=-F + ;; +- *freebsd*|dragonfly*) ++ freebsd*|dragonfly*) + args=( -s + '(:)-a[mount all filesystems in fstab]' + '-d[cause everything to be done except for the actual system call]' +@@ -757,7 +760,7 @@ + '*:dev or dir:->udevordir' + ) + ;; +- *freebsd*|dragonfly*) ++ freebsd*|dragonfly*) + args=( + '(*)-a[unmount all mounted file systems]' + '-A[unmount all mounted file systems except the root]' +@@ -819,7 +822,7 @@ + fi + + case "$OSTYPE" in +- *freebsd*|dragonfly*) ++ freebsd*|dragonfly*) + while read mline; do + case $mline[(w)1] in + \#* ) +@@ -861,8 +864,13 @@ ;; *) /sbin/mount | while read mline; do - mp_tmp+=( $mline[(w)1] ) - dev_tmp+=( $mline[(w)3] ) -+ dev_tmp+=( $mline[(w)1] ) -+ mp_tmp+=( $mline[(w)3] ) ++ if [[ "$OSTYPE" =~ .*freebsd.* ]]; then ++ dev_tmp+=( $mline[(w)1] ) ++ mp_tmp+=( $mline[(w)3] ) ++ else ++ mp_tmp+=( $mline[(w)1] ) ++ dev_tmp+=( $mline[(w)3] ) ++ fi done ;; esac diff -ruN --exclude=CVS /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Types-_file_systems /usr/ports/shells/zsh/files/patch-Completion-Unix-Types-_file_systems --- /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Types-_file_systems 1969-12-31 18:00:00.000000000 -0600 +++ /usr/ports/shells/zsh/files/patch-Completion-Unix-Types-_file_systems 2008-10-28 18:22:46.986080000 -0500 @@ -0,0 +1,19 @@ +--- Completion/Unix/Type/_file_systems.orig 2007-09-27 07:00:03.000000000 -0500 ++++ Completion/Unix/Type/_file_systems 2008-10-28 18:23:01.000000000 -0500 +@@ -17,8 +17,14 @@ + osf*) fss=( advfs ufs nfs mfs cdfs ) ;; + solaris*) fss=( ufs nfs hsfs s5fs pcfs cachefs tmpfs ) ;; + freebsd*|dragonfly*) +- fss=( cd9660 devfs ext2fs fdesc kernfs linprocfs mfs msdos nfs +- ntfs null nwfs portal procfs std udf ufs umap union ) ++ if [[ "${OSTYPE}" =~ freebsd.* ]]; then ++ fsext="fs" ++ else ++ fsext="" ++ fi ++ fss=( cd9660 devfs ext2fs fdesc kernfs linprocfs mfs msdos${fsext} nfs ++ ntfs null${fsext} nwfs portal procfs smbfs std udf ufs umap ++ union${fsext} ) + ;; + darwin*) + fss=( afp cd9660 cddafs devfs fdesc hfs lfs msdos nfs --- zsh-4.3.6_7.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810282335.m9SNZYu3032992>