Zsh Mailing List Archive
Messages sorted by:
- X-seq: zsh-users 2927
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Completion
- Date: Tue, 22 Feb 2000 15:47:00 +0100 (MET)
- In-reply-to: Andy Spiegl's message of Tue, 22 Feb 2000 15:24:37 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
Andy Spiegl wrote:
> Hi Sven,
> > > tcsh has a completion rule like this:
> > > complete rcp 'c%*@*:%`set q=$:-0;set q="$q:s/@/ /";set q="$q:s/:/ /";set q=($q " ");rsh $q -l $q ls -dp $q\*`%' 'c%*:%`set q=$:-0;set q="$q:s/:/ /";set q=($q " ");rsh $q ls -dp $q\*`%' 'c%*@%$hosts%:' 'C@[./$~]*@f@' 'n/*/$hosts/:'
> > Urgh. Anyone want to argue about the syntax of compctl or the
> > completion functions again? ;-)
> > Eh? The completion system contains functions for rcp and scp, so it
> > should work out-of-the-box.
> Hm, no, not really. Maybe I am blind (happens too often anyway), but here
> only user@host and option completions are done. But maybe - from looking
> at the tcsh-code - it was not clear what I meant.
No it wasn't... until I now looked closer and found the calls to `rsh'.
> Say I press TAB after this:
> $ scp foo me@bar:/usr/local/_
> Then I would like to see the files and directories on the remote host "bar",
> but what I see is the possible completions for my own host.
Hm. Depending on what you think about us, you may think that we:
1) weren't sure if we should do that (and how: using `rsh ... ls' or
zftp), because there may be systems without rsh (offering only
ssh), because you may need something like .rhosts for this to work,
which is evil, because it can get pretty expensive, right?
2) were just too lazy to implement that
 I think I wrote the two initially, but I also think someone else
had his fingers in them after that.
 This only really means that we should make it configurable: to use
either rsh or zftp or not try remote-completion and so on...
 Actually, I *had* thought about trying to do that, was slightly
scared because of 2) and then forgot.
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by: