Re: Returns error code on success?

Bram Moolenaar <[email protected]> Fri, 04 Feb 2005 12:13:06 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Nick Sabalausky wrote:

> I've looked into this some more and it seems the problem is in aap.bat.
> Specifically, the last line in the file ("set AAPARGS=") seems to be
> setting an exit code of 1. It looks like that's only needed for the
> Win9x-branch and, unless I'm overlooking something, it can be safely
> moved to just before "goto eof" thus fixing the problem on at least
> NT/XP-class machines. I'm not sure how to create a patch (is there a
> patch program in XP, or do I gotta grab one from GNU project?), so
> here's the changed aap.bat:

I'm glad you found a solution.  Strange that "set" causes the errorlevel
to be set.  But otherwise it might clear it, thus moving it out of the
way is good.

For Windows 9x we could remove the set command completely.  What is more
important: that %AAPARGS% is cleared or that the exit code is OK?

-- 
I am also told that there is a logical proof out there somewhere
that demonstrates that there is no task which duct tape cannot handle.
					-- Paul Brannan

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl