Mail Archives: djgpp/2004/09/21/08:30:47
Cesar Rabak <crabak AT acm DOT org> wrote in message news:<414F23A8 DOT 8060709 AT acm DOT org>...
> > The problem is when you include the ".zip" file extension, unzip32.exe
> > changes its return code to 1 !!!
> >
> > I don't know if this is a bug or a feature but it has bad colour for
> > me.
> >
>
> From the unzip man page:
>
> DIAGNOSTICS
> The exit status (or error level) approximates the exit
> codes defined by PKWARE and takes on the following values,
> except under VMS:
>
> 0 normal; no errors or warnings detected.
>
> 1 one or more warning errors were encountered,
> but processing completed successfully any-
> way. This includes zipfiles where one or
> more files was skipped due to unsupported
> compression method or encryption with an
> unknown password.
I have to admit I have not read unzip32 full documentation, but I
don't think this fragment put anything clear. PKWARE PKUNZIP does not
return 1 when you give extension, so that "approximation in the exit
codes" is not very good in this case. Anyway, I cannot imagine why it
should produce a "warning error" to include complete path of the
archive. And I think if you are to going to return an error code, you
should send the corresponding text message to the console.
Thank you
- Raw text -