Page 1 of 1 1
Topic Options
#187458 - 2008-05-03 11:27 AM Bug in "Exit" handling
PRandal Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 28
This is an old one, but it is still a flipping nuisance and plain wrong behaviour:

Consider the one line file it.kix:
 Code:
exit $a

D:\>kix32 it $a=0

D:\>kix32 it $a=1

D:\>kix32 it $a=2

ERROR : failed to find/open script [it]!

D:\>kix32 it $a=3

D:\>kix32 it $a=4

Sorry Ruud, but if I decide to set a return code of 2 I don't want KiXtart to get its knickers in a twist and scream about a missing script file.

This is plain wrong.

Tut!!!!!!

Phil


Edited by PRandal (2008-05-03 11:32 AM)

Top
#187459 - 2008-05-03 11:38 AM Re: Bug in "Exit" handling [Re: PRandal]
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
sorry but what version of KiXtart do you use ?
I can't get your result with KiXtart 4.60

here is my code for test.kix :
 Code:
exit $a

here is my code for test.cmd :
 Code:
@echo off
 
set scriptdir=%~dp0
set scriptname=%~n0
 
kix32 "%scriptdir%\%scriptname%.kix" $a=0
echo rc=%errorlevel%
 
kix32 "%scriptdir%\%scriptname%.kix" $a=1
echo rc=%errorlevel%
 
kix32 "%scriptdir%\%scriptname%.kix" $a=2
echo rc=%errorlevel%
 
kix32 "%scriptdir%\%scriptname%.kix" $a=3
echo rc=%errorlevel%
 
kix32 "%scriptdir%\%scriptname%.kix" $a=4
echo rc=%errorlevel%


here is the result :
 Code:
rc=0
rc=1
rc=2
rc=3
rc=4
_________________________
Christophe

Top
#187460 - 2008-05-03 04:20 PM Re: Bug in "Exit" handling [Re: ChristopheM]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I can repro what the OP sees on 4.60 version.
 Quote:
C:\KiX\4.60>kix32 it $a=0

C:\KiX\4.60>kix32 it $a=1

C:\KiX\4.60>kix32 it $a=2

ERROR : failed to find/open script [it]!


C:\KiX\4.60>kix32 it $a=3

C:\KiX\4.60>
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#187461 - 2008-05-03 04:49 PM Re: Bug in "Exit" handling [Re: PRandal]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
This was reported in this topic and Ruud reported that it would be fixed in the next release.

I guess we just have to wait for that release?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#191781 - 2009-01-14 02:11 PM Re: Bug in "Exit" handling [Re: Glenn Barnas]
paperinik Offline
Fresh Scripter

Registered: 2007-11-04
Posts: 23
Loc: Germany
I tested.

Itīs fixed in 4.61.b1

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 360 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.049 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.