From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1136 invoked from network); 9 Jul 1999 15:16:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jul 1999 15:16:36 -0000 Received: (qmail 5677 invoked by alias); 9 Jul 1999 15:16:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7088 Received: (qmail 5670 invoked from network); 9 Jul 1999 15:16:25 -0000 Message-Id: <9907091447.AA17052@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: completions for su and implicit fg/bg In-Reply-To: "Oliver Kiddle"'s message of "Fri, 09 Jul 1999 14:53:29 DFT." <3785FED9.C361BFD6@thoth.u-net.com> Date: Fri, 09 Jul 1999 16:47:43 +0200 From: Peter Stephenson Oliver Kiddle wrote: > You don't want to use $SHELL. The command is run using the default shell > of the user which is su'd to. You're right, I've removed that, but we need to handle other people's passwords better --- I'd be tempted to use perl. > Seeing as it's possible to stick stuff at the beginning of $words it > isn't essential to allow this to be a parameter. I suppose it will be > more readable for completions which use it though so is probably worth > doing. If you want to include it, the single line: > words=( $@ $words[@] ) > added to the start of _normal should do the trick. Except the rest of the arguments in _normal are funny. My brain's not working well enough to think about the consequences on things like CURRENT, so I've just left it for the time being. > P.S. Sorry Peter, you'll get this twice as I accidentally did a Reply > instead of Replyall and am now resending. Except it came separately and landed in my standard new mail folder, which was more interesting. -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy