Item1120: pseudo-install.pl incorrectly sets return code with -A command line option

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release:
Applies To: Engine
Component:
Branches:
Reported By: WillNorris
Waiting For:
Last Change By: OlivierRaginel
if you think the return code should be zero,

then the return from usage() should likely be zero too
unless ( scalar(@ARGV) ) {
    usage();
    exit 1;
}

As a convict myself, I could be wrong... smile

-- BramVanOosterhout - 23 Feb 2009

Hum, I doubt it should be 0 after usage(). usage() means the user tried something that's not supported (here: tried to run it without arguments, and without -A), thus the script fails, thus it exists non-zero.

The problem reported was that, when called with -A, it doesn't require any argument, and works perfectly. So it should exit 0, as it succeeded.

Check Support.Question72 for a full history on this.

-- OlivierRaginel - 24 Feb 2009

ItemTemplate edit

Summary pseudo-install.pl incorrectly sets return code with -A command line option
ReportedBy WillNorris
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:412088c9f9bd distro:b03d7426d672 distro:4b64f56f0e19
ReleasedIn
Topic revision: r7 - 24 Feb 2009, OlivierRaginel
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy