Your message dated Mon, 19 Nov 2007 17:20:12 +0100 (CET)
with message-id <[EMAIL PROTECTED]>
and subject line Bug#445967: zip: trouble mixing '-R', '-' and '-i'
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: zip
Version: 2.32-1
Severity: normal
I want to do a recursive zip of everything below the current directory
with '-R' and to write on stdout:
$ zip -R - '*'
zip warning: name not matched: *
zip error: Nothing to do! (try: zip -R - . -i *)
$ zip -R - . -i '*' > out
zip I/O error: No such file or directory
zip error: File not found or no read permission ()
[This error occurs whether the * is quoted or not, and indeed for any
pattern following the '-i'.]
$ zip -R - .
[correct behavior]
But what if I actually want to filter with '-i'?
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-lizzie
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages zip depends on:
ii libc6 2.6.1-5 GNU C Library: Shared libraries
Versions of packages zip recommends:
ii unzip 5.52-10 De-archiver for .zip files
-- no debconf information
--- End Message ---
--- Begin Message ---
On Tue, 9 Oct 2007, Celejar wrote:
> Package: zip
> Version: 2.32-1
> Severity: normal
>
> I want to do a recursive zip of everything below the current directory
> with '-R' and to write on stdout:
>
> $ zip -R - '*'
> zip warning: name not matched: *
>
> zip error: Nothing to do! (try: zip -R - . -i *)
>
> $ zip -R - . -i '*' > out
> zip I/O error: No such file or directory
>
> zip error: File not found or no read permission ()
>
> [This error occurs whether the * is quoted or not, and indeed for any
> pattern following the '-i'.]
>
> $ zip -R - .
>
> [correct behavior]
>
> But what if I actually want to filter with '-i'?
You can do something like this:
find . -name "*.[ch]" -print | zip - -@ > ../something.zip
(adapted from an example in the manpage).
--- End Message ---