From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1218 invoked from network); 5 Nov 2001 11:27:06 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?+sG+zrD1Zj24N0sJIkHLfqraXuU2CGd+?@203.24.36.3) by ns1.primenet.com.au with SMTP; 5 Nov 2001 11:27:06 -0000 Received: (qmail 20710 invoked from network); 5 Nov 2001 11:27:04 -0000 Received: from sunsite.dk (130.225.247.90) by proxy.melb.primenet.com.au with SMTP; 5 Nov 2001 11:27:04 -0000 Received: (qmail 14606 invoked by alias); 5 Nov 2001 11:26:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16222 Received: (qmail 14594 invoked from network); 5 Nov 2001 11:26:50 -0000 X-VirusChecked: Checked Sender: kiddleo@cav.logica.co.uk Message-ID: <3BE6772C.AD3447B6@yahoo.co.uk> Date: Mon, 05 Nov 2001 11:25:32 +0000 From: Oliver Kiddle X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en MIME-Version: 1.0 To: Borsenkow Andrej CC: ZSH Workers Mailing List Subject: Re: Mandrake urpmi suite completion References: <3BE45087.707@mow.siemens.ru> <1011103202735.ZM8656@candle.brasslantern.com> <3BE468BE.8060900@mow.siemens.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Borsenkow Andrej wrote: > > O.K. attached is completion for (part of) urpmi programs on Mandrake. > Should it go into Completion/Mandrake? Sounds like as good a place as any. > Suggestions for it are welcome. Okay, here's a few suggestions then: > urpmi ) > "(--help)--auto-select[select the pakages to update]" \ You've got a typo here: ^^^ > case "$state" in > media_url ) > if compset -P file://; then > _files -W / -/ && return 0 Is that right? If so, uprmi is using a dodgy file url format. After file:// it would normally be a hostname with file names occurring after file:/. You're also losing the _urls feature of completing the current directory after `file:' which I find really useful. If it would be useful here, it would be easy to modify _urls to take -/ in addition to -g (which it already takes and passes to _files). > elif compset -P removable_cdrom_\?://; then > _files -/ && return 0 > elif compset -P removable_; then > compadd -S "" -- cdrom_ floppy_ && return 0 > elif [[ -prefix '(ftp|http):' ]]; then > _url && return 0 Do you mean _urls there? > else > compadd -- file:// http:// ftp:// removable_ An _wanted with description would be nice here (and similarly further above). Oliver _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp