From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2212 invoked from network); 5 Jan 2000 23:50:07 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jan 2000 23:50:07 -0000 Received: (qmail 8416 invoked by alias); 5 Jan 2000 23:49:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9225 Received: (qmail 8409 invoked from network); 5 Jan 2000 23:49:58 -0000 To: zsh-workers@sunsite.auc.dk Subject: PATCH: _path_files -W absolute-pathname MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 06 Jan 2000 08:49:55 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) zdump completes files under a root directory as: Z:akr@thorax% zdump timezone bin/ etc/ lib/ proc/ usr/ boot/ floppy/ lost+found/ root/ var/ cdrom/ home/ mnt/ sbin/ vmlinuz@ dev/ initrd/ net/ tmp/ vmlinuz-@ Index: Completion/Core/_path_files =================================================================== RCS file: /projects/zsh/zsh/Completion/Core/_path_files,v retrieving revision 1.1.1.51 diff -u -r1.1.1.51 _path_files --- Completion/Core/_path_files 2000/01/04 15:02:25 1.1.1.51 +++ Completion/Core/_path_files 2000/01/05 23:45:15 @@ -43,6 +43,8 @@ W) tmp1="$OPTARG" if [[ "$tmp1[1]" = '(' ]]; then prepaths=( ${^=tmp1[2,-2]%/}/ ) + elif [[ "$tmp1[1]" = '/' ]]; then + prepaths=( "$tmp1/" ) else # In this case the variable should be an array, so # don't use an extra ${=...}. Index: Doc/Zsh/compsys.yo =================================================================== RCS file: /projects/zsh/zsh/Doc/Zsh/compsys.yo,v retrieving revision 1.1.1.107 diff -u -r1.1.1.107 compsys.yo --- Doc/Zsh/compsys.yo 2000/01/05 15:00:22 1.1.1.107 +++ Doc/Zsh/compsys.yo 2000/01/05 23:45:16 @@ -1844,7 +1844,8 @@ prefixes that are to be prepended to the string from the line to generate the filenames but that should not be inserted in the line or shown in a completion listing. The var(paths) may be the name of an -array parameter or a literal list of paths enclosed in parentheses. +array parameter, a literal list of paths enclosed in parentheses or +an absolute pathname. Additionally, the `tt(-F)' option from the tt(compadd) builtin is supported, giving direct control over which filenames should be ignored. If no such option is given, -- Tanaka Akira