On Fri, Sep 01, 2006, Adam Porter wrote:
> Package: p7zip
> Version: 4.42.dfsg.1-2
> Severity: wishlist
> 
> Running this produces a Bash error:
> 
> $ 7zr a test.7z Scripts/ -x!Nothing
> bash: !Nothing: event not found
> 
> However, according to the man page and the p7zip manual, it's correct syntax. 
>  However, it's also very non-standard, as far as I know.  It doesn't seem 
> like you should have 
> to escape a character like that in normal usage.  Could the "!" be changed to 
> something else, maybe an "=" or...?

Hi Adam, and thanks for keeping me updated on your use of p7zip.
That really helps improving p7zip.

As for the "escaping !" problem, I don't consider it a bug in p7zip to
use "!" as a command line switch. "!" is an extension in bash and zsh,
but it is not here in dash. So, as far as I am concerned, it is totally
OK to have ! in the command-line. And if you see the use of find or
egrep, you'll find that you have to escape "(", ")", "|", ...

With zsh:

% echo !a
zsh: event not found: a

With dash:
% echo !a
!a

I don't think upstream is going to include such a change because DOS
command lines don't need escaping "!". So forwarding is not worth it.

So I really tend to tag this bug wontfix or even close it.

-- 
adn
Mohammed Adnène Trojette

Reply via email to