From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5428 invoked from network); 24 Apr 2001 00:47:30 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Apr 2001 00:47:30 -0000 Received: (qmail 4758 invoked by alias); 24 Apr 2001 00:47:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14079 Received: (qmail 4747 invoked from network); 24 Apr 2001 00:47:19 -0000 Date: Mon, 23 Apr 2001 17:46:51 -0700 (PDT) From: Wayne Davison To: Zsh Workers Subject: Another keep-prefix problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I noticed one other problem with the current zsh (in CVS) and how it handles keeping the prefix. After Bart's last set of tweaks, this works: % ls $var1/foo/$var2/bar But leaving off the leading variable results in a useless expansion: % ls /full/path/foo/$var/bar When the filename only has an embedded variable, it is expanded. Here's a (completely usless) failure case: zsh -f % autoload -U compinit % compinit % zstyle ':completion:*' completer _expand _complete % zstyle ':completion:*:expand:*' keep-prefix true % bindkey '\t' complete-word % www=/var/www/html % mkdir $www/subdir % echo ~ /home/wayne % ls -l ~/../..$www/sub ... properly expands to 'subdir' ... % ls -l /home/wayne/../..$www/sub ... does not. ..wayne..