From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4467 invoked from network); 22 Feb 2000 15:02:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Feb 2000 15:02:53 -0000 Received: (qmail 5023 invoked by alias); 22 Feb 2000 15:02:17 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2929 Received: (qmail 4894 invoked from network); 22 Feb 2000 15:01:30 -0000 Date: Tue, 22 Feb 2000 16:01:28 +0100 From: Andy Spiegl To: zsh-users@sunsite.auc.dk Subject: Re: Completion Message-ID: <20000222160128.A22847@br-online.de> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <200002221447.PAA14598@beta.informatik.hu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <200002221447.PAA14598@beta.informatik.hu-berlin.de>; from wischnow@informatik.hu-berlin.de on Tue, Feb 22, 2000 at 03:47:00PM +0100 X-PGP-GPG-Keys: finger pgp.andy@spiegl.de OR mail -s "send pgp" auto@spiegl.de Sven Wischnowsky wrote: > > 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[1], 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), ssh falls back to rsh if there is no ssh on the remote host. (if configured so) > because you may need something like .rhosts for this to work, > which is evil, Not necessarily: public keys in .ssh/authorized_keys is the better alternative. > because it can get pretty expensive, right[2]? True, but not as expensive as opening a new shell, ssh-ing to the remote machine and looking for the right path/filenames manually. :-) > 2) were just too lazy to implement that[3] I wouldn't call it lazy. I guess there were and are more important things to do. And I wasn't saying that it is bad that zsh doesn't have this functionality. I was just asking whether someone on the list has done this already so that I don't have to start thinking myself. So who is lazy? :-) > [2] This only really means that we should make it configurable: to use > either rsh or zftp or not try remote-completion and so on... Using ssh with its fallback-to-rsh-option should be enough. If that fails a simple "remote host denies access" is sufficient, I would say. > [3] Actually, I *had* thought about trying to do that, was slightly > scared because of 2) and then forgot. Granted. :-) Thanks, Andy. -- E-Mail: Andy@spiegl.de URL: http://andy.spiegl.de PGP/GPG: see headers o _ _ _ --------- __o __o /\_ _ \\o (_)\__/o (_) ------- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ ------ (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I don't feel we did wrong in taking this great country away from them. There were great numbers of people who needed new land, and the Indians were selfishly trying to keep it for themselves. (John Wayne)