summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-09-10 17:09:50 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-09-10 17:09:50 +0000
commit571015bc32e6ff3ed648a6b351d05272329386bc (patch)
treea9505565299bc78eb79d70a3a11e8d5a47cd287a
parentfdfd451861d2221b728c611558ba86480fdfe7ed (diff)
downloadzsh-571015bc32e6ff3ed648a6b351d05272329386bc.tar.gz
zsh-571015bc32e6ff3ed648a6b351d05272329386bc.zip
29760: fix references to _i_ulwdirs
-rw-r--r--ChangeLog15
-rw-r--r--Completion/compaudit7
2 files changed, 14 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index d88276c17..980e311d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-10 Barton E. Schaefer <schaefer@zsh.org>
+
+ * 29760: Completion/compaudit: declare _i_ulwdirs and make sure
+ it is correctly referenced.
+
2011-09-07 Peter Stephenson <pws@csr.com>
* unposted: Completion/Unix/Command/_perforce: updates for
@@ -31,7 +36,7 @@
* 29733: Jonathan Kolberg: Completion/Debian/Command/_apt: add
completion for apt-get changelog.
-2011-09-05 Barton E. Schaefer <schaefer@brasslantern.com>
+2011-09-05 Barton E. Schaefer <schaefer@zsh.org>
* users/16302: Completion/Unix/Type/_path_files: pattern matching
for plain files (e.g., *.pdf for xpdf completion) was broken by
@@ -47,7 +52,7 @@
* 29744: Src/builtin.c: don't mess up non '-A' case in
29731.
-2011-08-29 Barton E. Schaefer <schaefer@brasslantern.com>
+2011-08-29 Barton E. Schaefer <schaefer@zsh.org>
* users/16291: Functions/Prompts/prompt_bart_setup: revert to
using history text in non-"fg" case to avoid alias expansion.
@@ -66,7 +71,7 @@
* users/16289: Doc/Zsh/expn.yo, Src/exec.c, Src/jobs.c: don't
delete temporary files when disowning and document this.
-2011-08-20 Barton E. Schaefer <schaefer@brasslantern.com>
+2011-08-20 Barton E. Schaefer <schaefer@zsh.org>
* unposted: Functions/Zle/.distfiles: add move-line-in-buffer
@@ -188,7 +193,7 @@
* 29661: Doc/Zsh/redirect.yo: Improve the documentation for
{var}>... redirections.
-2011-08-09 Barton E. Schaefer <schaefer@brasslantern.com>
+2011-08-09 Barton E. Schaefer <schaefer@zsh.org>
* 29654: Src/jobs.c: "wait" should resume stopped jobs identified
by process ID as well as by job number.
@@ -15398,5 +15403,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5463 $
+* $Revision: 1.5464 $
*****************************************************
diff --git a/Completion/compaudit b/Completion/compaudit
index df431afb1..72e0b62ba 100644
--- a/Completion/compaudit
+++ b/Completion/compaudit
@@ -102,7 +102,7 @@ _i_wdirs=( ${^fpath}(N-f:g+w:,-f:o+w:,-^u0u${EUID})
# that this has not happened, and pick the best group.
if (( $#_i_wdirs )); then
- local GROUP GROUPMEM _i_pw _i_gid _i_ulwdirs
+ local GROUP GROUPMEM _i_pw _i_gid
if ((UID == EUID )); then
getent group $LOGNAME | IFS=: read GROUP _i_pw _i_gid GROUPMEM
else
@@ -117,8 +117,9 @@ fi
if [[ -f /etc/debian_version ]]
then
-_i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
-_i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdir}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
+ local _i_ulwdirs
+ _i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
+ _i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdirs}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
fi
_i_wdirs=( $_i_wdirs ${^fpath}.zwc^([^_]*|*~)(N-^u0u${EUID}) )