Bug 115702

Summary: [PATCH] shells/zsh: various completion fixes
Product: Ports & Packages Reporter: Sean Farley <scf>
Component: Individual Port(s)Assignee: Sergei Kolobov <sergei>
Status: Closed FIXED    
Severity: Affects Only Me CC: sergei
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
zsh-4.3.4_1.patch none

Description Sean Farley freebsd_committer freebsd_triage 2007-08-22 01:20:00 UTC
- Added FreeBSD flavor of locate to completion.
- mount completions were parsing mount output in reverse order.
- umount completions were completely failing due to readlink options
  that are Linux-centric.

Note:  umount completions only partially work.  umount<Space><Tab> will
give a correct list, but partial completion will not work just right:
e.g.,  umount<Space>/us<Tab> will result in "umount /us/".  Someone
better with completions should have a look at it.

Added file(s):
- files/patch-Completion-Unix-Command-_locate
- files/patch-Completion-Unix-Command-_mount
- files/patch-Completion-Unix-Type-_canonical_paths

Port maintainer (sergei@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-08-22 01:20:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sergei

Over to maintainer
Comment 2 Matthieu Bollot 2007-10-04 13:46:39 UTC
Same thing here.

But about completion, sed -i -e
's/readlink/stat/g' /usr/local/share/zsh/4.3.4/functions/Completion/Unix/_canonical_paths should do the trick.

(mount /mn[tab] will be mount /mnt/)

hope it will help.
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-10-05 09:22:52 UTC
sergei      2007-10-05 08:22:46 UTC

  FreeBSD ports repository

  Modified files:
    shells/zsh           Makefile 
  Added files:
    shells/zsh/files     patch-Completion-Unix-Command-_locate 
                         patch-Completion-Unix-Command-_mount 
                         patch-Completion-Unix-Type-_canonical_paths 
                         patch-environ 
  Log:
  - 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)
  
  Revision  Changes    Path
  1.88      +1 -1      ports/shells/zsh/Makefile
  1.1       +40 -0     ports/shells/zsh/files/patch-Completion-Unix-Command-_locate (new)
  1.1       +13 -0     ports/shells/zsh/files/patch-Completion-Unix-Command-_mount (new)
  1.1       +20 -0     ports/shells/zsh/files/patch-Completion-Unix-Type-_canonical_paths (new)
  1.1       +253 -0    ports/shells/zsh/files/patch-environ (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Sergei Kolobov freebsd_committer freebsd_triage 2007-10-05 09:23:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!