From e343cc3ca4536607853d892d4353cee768cab947 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 13 Nov 2008 22:58:47 +0100 Subject: include/conflicts: removed unneccessary loops --- include/conflicts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/conflicts b/include/conflicts index 1e119c0..ad5ed4f 100755 --- a/include/conflicts +++ b/include/conflicts @@ -1,6 +1,6 @@ #!/usr/bin/env zsh ## vim:ft=zsh -typeset file dir i +typeset file dir typeset PDIR=$HOME/packages typeset -a sfpath spath conflict @@ -18,13 +18,8 @@ is_in_path () { return $ret } -# a simple sfpath=${fpath:#${HOME}*} won't work -for i in ${fpath:#${HOME}*}; { - sfpath+=$i -} -for i in ${path:#${HOME}*}; { - spath+=$i -} +sfpath=(${fpath:#$HOME*}) +spath=(${path:#$HOME*}) for file in $PDIR/{*/provides/zsh/completions/*(N),zsh/etc/completions/*(N)}; { conflict=($(is_in_path ${file:t} $sfpath)) -- cgit v1.2.3