Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rm(1) completion definition
- X-seq: zsh-workers 25828
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Oliver Kiddle" <okiddle@xxxxxxxxxxx>
- Subject: Re: rm(1) completion definition
- Date: Wed, 8 Oct 2008 11:29:40 +0200
- Cc: "Zsh Workers" <zsh-workers@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=edrtbZU4+sF3JE2McJ08fDlKJx4oLO27TuUDGCuIxho=; b=MC3CsxT6SFCefPJ/JFlf/+dRi+q93cTIoQXhiDKMmLSW9Vox1G16pApj3rYPbslfAG 1je4yUmOUGcEtu/VKBrhmx2MmSrqhCIuLQUpWPtz6CrOOaXPYO54I2P3rDn7BXRzewNN GQGEWUsWcDbiB+3mYf4G088uqrLKkBTR9muAI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=Ar6VtBl9RgDdoljOMAABuIVN2x/CzhJImxxTEidmgwyPaPEiGdjGqir0JA1ukgE9ZM viQUnoRsEyHpirIuBsDuQ6Il75MBpCQh9kGDaaklWUjrgdH3dQqHz2yiNzlErfT0Btqt hxdA2HISKKII3tt/21tHHZ656KEjPWqB7cU+Y=
- In-reply-to: <dbfc82860810010621sd44b17fifbeadd4789831976@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860809301403v1ac0eb06ha80f01e96c02ab4f@xxxxxxxxxxxxxx> <12702.1222853932@dcle12> <dbfc82860810010621sd44b17fifbeadd4789831976@xxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On Wed, Oct 1, 2008 at 15:21, Nikolai Weibull <now@xxxxxxxx> wrote:
> On Wed, Oct 1, 2008 at 11:38, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
>> Nikolai Weibull wrote:
>>> 1. It seems that my trick to disable --force and --recursive on
>>> non-GNU systems doesn't work.
>> This is better done as:
>> args=( ${args:#*--(force|recursive)\[*} )
> Thanks, will change to that.
Done.
>> The right way to do this would be to work out exactly what can't be
>> completed and build up a suitable glob pattern to pass to _files with
>> -g.
>
> Ugh. That sounds complicated.
Done.
>> One other point: I really hope that running rm --version can't possibly
>> actually result in a file or files being removed on some system. I'm a
>> bit uneasy about it. Perhaps you should try using rm --help instead
>> because there's no `r' in help.
> OK, sounds reasonable.
Done.
How about including it now?
Attachment:
_rm
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author