Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with zip completion
- X-seq: zsh-users 4381
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Problem with zip completion
- Date: Wed, 17 Oct 2001 15:43:20 +0000
- In-reply-to: <20011017164751.A6245@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011017164751.A6245@xxxxxxxxxxxxxx>
On Oct 17, 4:47pm, Vincent Lefevre wrote:
} Subject: Problem with zip completion
}
} With the standard zip completion function (under zsh 4.0.2), when I type
}
} zip blah.zip file[TAB]
}
} filename completion works, but when I type
}
} zip -r blah.zip file[TAB]
}
} it doesn't work any longer. Does anyone have a better completion
} function for zip?
Hm. Completion/Unix/Command/_zip thinks that -R is the option for
recursing into subdirectories, but zip 2.1 and 2.3 (as distributed
by RedHat) use -r, and 2.3 says -R is "PKZIP recursion." Also, the
_zip function thinks `zip -e' will encrypt, but zip 2.3 doesn't have
that option on my system.
Oliver, it looks like you wrote the _zip function, posted in 13600.
On which version of zip did you base it?
Meanwhile, Vincent, as a temporary fix, edit _zip and replace -R with
-r in what should be the obvious place near the top of the function.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author