View | Details | Raw Unified | Return to bug 115702
Collapse All | Expand All

(-)/usr/ports/shells/zsh/files/patch-Completion-Unix-Command-_locate (+40 lines)
Line 0 Link Here
1
--- Completion/Unix/Command/_locate.orig	2006-09-27 09:50:25.000000000 -0500
2
+++ Completion/Unix/Command/_locate	2007-08-20 22:08:08.000000000 -0500
3
@@ -11,7 +11,7 @@
4
   ;;
5
 
6
   (locate)
7
-  input="$(_call_program locate $words[0] -V)"
8
+  input="$(_call_program locate $words[0] -V 2>&1)"
9
   case $input in
10
     (*mlocate*)
11
     ltype=mlocate
12
@@ -25,6 +25,10 @@
13
     ltype=gnu
14
     ;;
15
 
16
+    (*illegal option*)
17
+    ltype=bsd
18
+    ;;
19
+
20
     # guess
21
     (*)
22
     ltype=$best_guess
23
@@ -108,4 +112,17 @@
24
     --help'[Show help]' \
25
     '*:pattern: '
26
   ;;
27
+
28
+  (bsd)
29
+  _arguments -s : \
30
+    -0'[Output separated by NUL characters]' \
31
+    -S'[Show database statistics]' \
32
+    -c'[Output the number of matching entries]' \
33
+    -d'[Use alternative database]:database:_files' \
34
+    -i'[Ignore case distinctions in patterns]' \
35
+    -l'[Limit search results]:file limit: ' \
36
+    -m'[Use mmap instead of stdio library]' \
37
+    -s'[Use stdio instead of mmap]' \
38
+    '*:pattern: '
39
+  ;;
40
 esac
(-)/usr/ports/shells/zsh/files/patch-Completion-Unix-Command-_mount (+13 lines)
Line 0 Link Here
1
--- Completion/Unix/Command/_mount.orig	2006-05-28 13:46:56.000000000 -0500
2
+++ Completion/Unix/Command/_mount	2007-08-20 21:22:22.000000000 -0500
3
@@ -859,8 +859,8 @@
4
     ;;
5
   *)
6
     /sbin/mount | while read mline; do
7
-      mp_tmp+=( $mline[(w)1] )
8
-      dev_tmp+=( $mline[(w)3] )
9
+      dev_tmp+=( $mline[(w)1] )
10
+      mp_tmp+=( $mline[(w)3] )
11
     done
12
     ;;
13
   esac
(-)/usr/ports/shells/zsh/files/patch-Completion-Unix-Type-_canonical_paths (+20 lines)
Line 0 Link Here
1
--- Completion/Unix/Type/_canonical_paths.orig	2006-05-28 13:36:06.000000000 -0500
2
+++ Completion/Unix/Type/_canonical_paths	2007-08-20 21:23:04.000000000 -0500
3
@@ -38,7 +38,7 @@
4
   files=($@)
5
 else
6
   for __index in $@; do
7
-    files+=$(readlink -qf $__index)
8
+    files+=$(/usr/bin/stat -qr $__index | cut -d' ' -f16)
9
   done
10
 fi
11
 
12
@@ -48,7 +48,7 @@
13
   expref=${~origpref}
14
   [[ $origpref == (|*/). ]] && rltrim=.
15
   curpref=${${expref%$rltrim}:-./}
16
-  canpref=$(readlink -qf $curpref)
17
+  canpref=$(/usr/bin/stat -qr $curpref | cut -d' ' -f16)
18
   if [[ $? -eq 0 ]]; then
19
     [[ $curpref == */ && $canpref == *[^/] ]] && canpref+=/
20
     canpref+=$rltrim

Return to bug 115702