ports/shells/zsh/files/patch-Completion-Unix-Command-_mount
Sergei Kolobov 91fa081e73 - Add Peter Stephenson's patch from Zsh CVS repo that adds (un)setenv()
detection. This fixes the issue on 7-CURRENT where Zsh was manipulating
  environment directly in conflict with the new *env() functions:
     http://lists.freebsd.org/pipermail/freebsd-current/2007-July/075538.html
  6-STABLE continues to works correctly.

  More info about the patch:
     http://www.zsh.org/mla/workers/2007/msg00619.html

- Fix completions for locate(1), mount(8), umount(8) to avoid some linuxisms
  and do the right thing under FreeBSD

PR:		ports/115094, ports/115702
Submitted by:	Sean C. Farley (scf)
2007-10-05 08:22:46 +00:00

13 lines
377 B
Text

--- 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 @@
;;
*)
/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] )
done
;;
esac