Add patch to fix umount /<tab> complaining about missing -q readlink opt.

From pea at raveland dot org (MAINTAINER), noticed by FreeBSD maintainer.

ok okan@
This commit is contained in:
landry 2008-03-26 16:45:43 +00:00
parent b469af200f
commit 2c940c735f
3 changed files with 25 additions and 2 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.45 2008/02/08 04:55:08 okan Exp $
# $OpenBSD: Makefile,v 1.46 2008/03/26 16:45:43 landry Exp $
COMMENT= Z shell, Bourne shell-compatible
V= 4.3.5
DISTNAME= zsh-$V
PKGNAME= ${DISTNAME}p0
CATEGORIES= shells
MAINTAINER= Pierre-Emmanuel Andre <pea@raveland.org>

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Completion_Unix_Type__canonical_paths,v 1.1 2008/03/26 16:45:43 landry Exp $
--- Completion/Unix/Type/_canonical_paths.orig Wed Mar 26 13:36:46 2008
+++ Completion/Unix/Type/_canonical_paths Wed Mar 26 13:37:32 2008
@@ -38,7 +38,7 @@ if (( $__opts[(I)-N] )); then
files=($@)
else
for __index in $@; do
- files+=$(readlink -qf $__index)
+ files+=$(readlink -f $__index)
done
fi
@@ -48,7 +48,7 @@ _canonical_paths_add_paths () {
expref=${~origpref}
[[ $origpref == (|*/). ]] && rltrim=.
curpref=${${expref%$rltrim}:-./}
- canpref=$(readlink -qf $curpref)
+ canpref=$(readlink -f $curpref)
if [[ $? -eq 0 ]]; then
[[ $curpref == */ && $canpref == *[^/] ]] && canpref+=/
canpref+=$rltrim

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.22 2008/02/08 04:55:08 okan Exp $
@comment $OpenBSD: PLIST,v 1.23 2008/03/26 16:45:43 landry Exp $
@pkgpath shells/zsh,-main
@shell bin/zsh
%%SHARED%%
@ -78,6 +78,7 @@ share/zsh/${V}/functions/_cal
share/zsh/${V}/functions/_call_function
share/zsh/${V}/functions/_call_program
share/zsh/${V}/functions/_canonical_paths
@comment share/zsh/${V}/functions/_canonical_paths.orig
share/zsh/${V}/functions/_ccal
share/zsh/${V}/functions/_cd
share/zsh/${V}/functions/_cdbs-edit-patch