Your message dated Fri, 1 Sep 2006 02:48:04 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#309059: Scanning error if excluded directory doesn't exist
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: p7zip
Version: 4.18-1
If you try to exclude a directory that does not exist, 7z will stop with
a scanning error, instead of proceeding with the archive operation.
This doesn't seem appropriate. For instance, I have a filelist file of
directories to exclude from the archive operation, but it's operating on
a directory that is rsync'ed from another partition. The contents of
that directory can vary. I always want /blah/foo excluded from the
operation, even if /blah/foo doesn't exist on Tuesday. 7z should ignore
it and continue with the operation; I didn't want it included anyway. :)
--- End Message ---
--- Begin Message ---
On Friday 01 September 2006 02:37, Piotr Ozarowski wrote:
> Adam Porter ([EMAIL PROTECTED]):
> > $ 7za a test.7z Scripts/ -x!Nothing
> >
> > According to the man page and the p7zip manual, as best I can determine,
> > this should make a new file (test.7z) and add the contents of the Scripts
> > directory, while excluding the file or directory named "Nothing".
> > However, the output of this command is simply:
> >
> > bash: !Nothing: event not found
>
> "!" has special meaning in bash, you need to escape it with "\", like
> this:
> $ 7za a test.7z Scripts/ -x\!Nothing
Oops, thanks. (Perhaps that should be filed as a wishlist bug. It doesn't
seem like you should have to escape something like that in normal usage. How
about an equals sign instead?)
I tested these:
$ 7zr a test.7z Scripts/ -x\!Nothing
$ 7zr a test.7z Scripts/ -x\!Scripts
The first one correctly archived the "Scripts" directory, while not
complaining about wanting to exclude the non-existant "Nothing" directory.
The second one correctly archived nothing (the literal form of "nothing"),
since the "Scripts" directory was excluded.
So I deem this bug done.
pgpDVtEwYKdDK.pgp
Description: PGP signature
--- End Message ---