From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14138 invoked from network); 23 Oct 2000 13:11:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Oct 2000 13:11:59 -0000 Received: (qmail 914 invoked by alias); 23 Oct 2000 13:11:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13067 Received: (qmail 907 invoked from network); 23 Oct 2000 13:11:53 -0000 Date: Mon, 23 Oct 2000 09:11:45 -0400 Message-Id: <200010231311.JAA01912@soup.ql.org> X-Authentication-Warning: soup.ql.org: ejb set sender to ejb@ql.org using -f From: "E. Jay Berkenbilt" To: Andrej.Borsenkow@mow.siemens.ru CC: zsh-workers@sunsite.auc.dk In-reply-to: <001701c03cc0$fa7a99a0$21c9ca95@mow.siemens.ru> (Andrej.Borsenkow@mow.siemens.ru) Subject: Re: still confused about completion and matching References: <001701c03cc0$fa7a99a0$21c9ca95@mow.siemens.ru> Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII > > > Good move I say. Well, look at the _arguments, it should be > > > enough. > > Of course, I immediately realized, that there are two completions > here. One for smbclient arguments (command line) and another one > for smbclient commands (that is, inside of interactive > session). Can tcsh do the latter? :-)) No, it can't. :-) However, years ago, I had a program called "ile" (input line editor) that could add editing capabilities to arbitrary commands. It wouldn't be hard to write a modern version of this command using something like gnu readline attached to a pty in which was running some interactive command.... I wonder how hard it would be to get zsh to do something like this. > If you are really motivated, look at the nslookup function and its usage of > zsh/zpty for controlling interactive command. Theoretically, you could > complete remote filenames, print jobs ... I love zsh :-)) Wow.... me too. :-)