From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6164 invoked from network); 15 Aug 2000 08:42:52 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Aug 2000 08:42:52 -0000 Received: (qmail 12946 invoked by alias); 15 Aug 2000 08:42:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12638 Received: (qmail 12939 invoked from network); 15 Aug 2000 08:42:43 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: Passing state information from one completion function to another? Date: Tue, 15 Aug 2000 12:42:32 +0400 Message-ID: <000301c00694$c0dab8e0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <200008150831.KAA05068@beta.informatik.hu-berlin.de> Importance: Normal > > Shouldn't it be enough to use `zstyle -e' and test if $words contains > `sudo' (probably as the first word)? > Ehh but if I understand it correctly, in case of sudo kill TAB $words is modified to be just (kill), removing sudo and any of it's option? In more general case sudo -u foo kill TAB it would be nice to know that we are su'ing to user foo and not to root. The problem is, I need this information not when completing sudo but when completing command after sudo. -andrej