From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19764 invoked from network); 7 Jun 2000 22:21:32 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jun 2000 22:21:32 -0000 Received: (qmail 10267 invoked by alias); 7 Jun 2000 22:21:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11804 Received: (qmail 10258 invoked from network); 7 Jun 2000 22:21:13 -0000 Date: Wed, 7 Jun 2000 15:21:09 -0700 (PDT) From: Wayne Davison X-Sender: wayne@phong.blorf.net To: Sven Wischnowsky Cc: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: expansion In-Reply-To: <200006070646.IAA11684@beta.informatik.hu-berlin.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 7 Jun 2000, Sven Wischnowsky wrote: > I wrote: > > Finally, one of the just-committed cvs changes has introduced a bug > > where an extra space is getting added when it shouldn't be. Now, if > > you type "~/.z" you get "/home/wayne/.z " even though that file > > does not exist. > > We are talking about *expansion* here. Yes, I was switching topics a bit and talking about a bug in the _expand module. When I type the string "ls ~/.z" hoping to complete the filename, instead the _expand module expands the ~ into my home directory, and it now adds a space to the end of the string. That means I have to backspace over the space to continue completing the filename. > Wayne Davison wrote: > > However, no matter what I try, tab does not expand wildcards with > > expand-or-complete set. > > [Scratching head...] Hm. It works for me. ...And it would have worked for me too if glob_complete hadn't been turned on in the /etc/zshrc file. I apparently didn't notice that Mandrake Linux does this (because I have been attempting to use the new expansion/completion system on my Linux box). > [Going back to the glob discussion...] > You can also try the substs-globs-only style. I assume that should be spelled "subst-globs-only". I can't get this style to work for me. If I only set subst-globs-only (without anything like "glob" set), it does nothing. If I also set "glob", it expands tildes. I.e.: % zsh -f % bindkey '\t' complete-word % autoload -U compinit % compinit -D % zstyle ':completion:*' completer _expand _complete % zstyle ':completion:*:expand:::' subst-globs-only 1 % zstyle ':completion:*:expand:*' tag-order all-expansions % touch tmp{1..3} % ls tmp* This fails to do anything (but beep). If I add this line: % zstyle ':completion:*:expand:::' glob 1 then "ls tmp*" expands correctly, but "~/.z" expands the tilde instead of doing nothing. ..wayne..