Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Automatic hash -d
- X-seq: zsh-workers 13977
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Automatic hash -d
- Date: Fri, 13 Apr 2001 15:38:30 +0000
- In-reply-to: <Pine.LNX.4.30.0104130100130.8432-100000@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.30.0104130100130.8432-100000@xxxxxxxxxxxxxxx>
On Apr 13, 1:01am, Wayne Davison wrote:
} Subject: Re: Automatic hash -d
}
} I applied both of your changes to _path_files, and things are working
} very nicely now. I'll let you know if I encounter any problems.
Here's one potential oddity:
% z=/usr/local/share/zsh
% ls ~`echo z`/<TAB>
Completing unknown user `echo z`
And yet ~z has now been made into a nameddir.
Perhaps backticks should be treated like $(...) and therefore passed
through the parameter expansion branch in _path_files? The expression
would be something like:
if [[ "$pre" = *(\`[^\`]#\`|\$)*/* && ...
Of course one must be careful when completing command substitutions in
general.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author