Page 1 of 1 1
Topic Options
#78687 - 2002-01-10 03:29 AM "BUG" REPORT - The Darren Quit bug
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
try this:

code:

break on
; Darren Quit bug


"hello" ?


quit


open(1, "c:\file.tmp", 5) ; this should not run, but it does


As you can see, the script should say hello then exit. What it does is create a 0 byte file called file.tmp in C:\. I did a few little tests and it appears that KiX runs 1 more command after QUIT, but only certain commands.

I believe it is related to how KiX reads the optional part of the QUIT command. If you do QUIT 1 or QUIT QUIT (which I have been doing since 3.63 but never stopped to find out why) it works.

I believe that the QUIT command is using the output of the OPEN command as it's input. While this is normal/good, it is a pain in the ass when you insert a QUIT in code to quit when testing stuff.


Ideas?

cj

Top
#78688 - 2002-01-10 03:38 AM Re: "BUG" REPORT - The Darren Quit bug
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
My recollection is that this was discussed before. The moral of the story is to do a QUIT 1 or EXIT 1. If memory serves, it was even used deliberately to execute on the way out.

If only I could find that thread...

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#78689 - 2002-01-10 03:48 AM Re: "BUG" REPORT - The Darren Quit bug
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
AHAH! found it!
Script error : Error in expression: Dispatch pointers not allowed in expressions!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#78690 - 2002-01-10 04:49 AM Re: "BUG" REPORT - The Darren Quit bug
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Cool! I never saw that the QUIT QUIT had made it to the board.

ta,

cj

Top
#78691 - 2002-01-10 05:14 AM Re: "BUG" REPORT - The Darren Quit bug
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Ok I give up - who is Darren ?

-Shawn

Top
#78692 - 2002-01-10 09:17 AM Re: "BUG" REPORT - The Darren Quit bug
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
A guy at work that I was helping write a script. He was adding some new code and had a 0 byte file appearing each time it ran even though there was a QUIT.

Another KiX convert

cj

Top
#78693 - 2002-01-10 11:03 AM Re: "BUG" REPORT - The Darren Quit bug
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh. It seems so much easier to get a bug named after you than a program or feature/method or any other invention.

I shall know start searching for bugs to get one named "Lonkero's death"!
or "death of The Lonkero"

[ 10 January 2002: Message edited by: Lonkero ]

_________________________
!

download KiXnet

Top
#78694 - 2002-01-14 12:13 AM Re: "BUG" REPORT - The Darren Quit bug
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
lol

very true. cj's RND bug

cj

Top
#78695 - 2002-01-15 07:40 AM Re: "BUG" REPORT - The Darren Quit bug
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
fixed right, but were is the doc stating that cj bug was fixed?
well. you are thankfull for being noticed.
I quess, I wan't to make some name too.
maybe 'cause I'm so young and rebellious
we'll see if that'll change in some 20 years...
_________________________
!

download KiXnet

Top
#78696 - 2002-01-16 12:50 AM Re: "BUG" REPORT - The Darren Quit bug
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Changes in Beta 2 (build 10)

Goto the bottom of the page. My name has been ommitted


cj

Top
#78697 - 2002-01-17 12:51 AM Re: "BUG" REPORT - The Darren Quit bug
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes.
so I won't search for bugs 'cause can't get my name to docs!
_________________________
!

download KiXnet

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 1955 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.068 seconds in which 0.029 seconds were spent on a total of 11 queries. Zlib compression enabled.