Bug#309059: Scanning error if excluded directory doesn't exist

2006-09-01 Thread Adam Porter
On Sunday 13 August 2006 10:01, you wrote:
 On Sat, May 14, 2005, Adam Porter wrote:
  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.  :)

 Hi, does this still occur on 4.42 versions?

Well, I'm not sure.  I have 4.42.dfsg.1-2 installed, and I tried to run this:

$ 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

Also, there seems to be an inconsistency in the wrapper script, as you can see 
from these failed attempts at discovering the correct syntax:

[EMAIL PROTECTED]:~$ 7zr a -x Nothing test.7z Scripts/
Error:
Incorrect command line

[EMAIL PROTECTED]:~$ 7zr a -xNothing test.7z Scripts/
7-Zip (A) 4.42  Copyright (c) 1999-2006 Igor Pavlov  2006-05-14
p7zip Version 4.42 (locale=en_US,Utf16=on,HugeFiles=on,1 CPU)
Error:
Incorrect command line

It seems that one of them runs 7z, and the other doesn't.  I don't know if 
this is important or not.

Anyway, I'm not quite sure what to do now.  It seems that the wrapper script 
is interfering with the 7zr syntax.  Or maybe I'm just doing something wrong.


pgpoqZHaliZdf.pgp
Description: PGP signature


Bug#309059: Scanning error if excluded directory doesn't exist

2006-09-01 Thread Piotr Ozarowski
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

-- 
-=[ Piotr Ozarowski ]=-
-=[ http://www.ozarowski.pl ]=-


pgpru09BJ5M4m.pgp
Description: PGP signature