Bug#317293: acknowledged by developer (Re: Bug#317293: unzip: should exit with non-zero status if error in arguments)

2005-07-28 Thread Matthew Vernon

Hi,


This is the reply from the author, so I'm closing this bug.




Might it at least be worth documenting this somewhat bizarre behaviour? 
users might reasonably be running a shell script with set -e or 
similar, and be suprised if they make an error and the script doesn't 
exit.


In general, I'm not sure this sort of behaviour is actually helpful, 
but I can see that upstream isn't going to buy that.


Thanks,

Matthew

--
Matthew Vernon MA VetMB LGSM MRCVS
Farm Animal Epidemiology and Informatics Unit
Department of Veterinary Medicine, University of Cambridge
http://www.cus.cam.ac.uk/~mcv21/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#317293: acknowledged by developer (Re: Bug#317293: unzip: should exit with non-zero status if error in arguments)

2005-07-29 Thread Santiago Vila
On Thu, 28 Jul 2005, Matthew Vernon wrote:

> Hi,
> 
> > This is the reply from the author, so I'm closing this bug.
> 
> 
> 
> Might it at least be worth documenting this somewhat bizarre behaviour? users
> might reasonably be running a shell script with set -e or similar, and be
> suprised if they make an error and the script doesn't exit.

I don't think that would happen easily. As unzip does not support any
long options, it is unlikely that you write a shell script that tries
to use a "long option".

Moreover, the manpage explains that two hyphens have a special meaning:

   Environment  options  are,  in  effect,  considered to be just like any
   other command-line options, except that they are effectively the  first
   options  on  the  command line.  To override an environment option, one
   may use the ``minus operator'' to remove it.  For instance, to override
   one of the quiet-flags in the example above, use the command

   unzip --q[other options] zipfile

   The  first  hyphen  is the normal switch character, and the second is a
   minus sign, acting on the q option.  Thus the effect here is to  cancel
   one  quantum  of  quietness. [...]

So yes, the meaning of two hyphens is documented.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]