Page 1 of 1 1
Topic Options
#203626 - 2011-11-12 01:24 AM Setoption("WrapATEOL") setting resets when shelling kix32.exe
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
It appears that kix resets the WRAPATEOL setting when you shell another kix32.exe process. I tested the following code with 4.53, 4.61, and 4.62 and they all did the same thing. Neither NoVarsInStrings nor NoMacrosInstings reset like this when shelling another kix32, so I don't think this is by design. In fact, simply running kix32.exe with no script causes this.

 Code:
$RC=setoption("WrapATEOL","on")

$longstring="This is a long string of text to see what happens when it reaches the end of the line."
$longstring=$longstring +"  With WrapATEOL on, it should always go to the next line."
? $longstring
shell 'kix32'
?
? $longstring


Produces:
 Code:
This is a long string of text to see what happens when it reaches the end of the
 line.  With WrapATEOL on, it should always go to the next line.

 line.  With WrapATEOL on, it should always go to the next line.s the end of the

Can someone confirm?

Top
#203627 - 2011-11-12 01:48 AM Re: Setoption("WrapATEOL") setting resets when shelling kix32.exe [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
confirmed.
tested with wkix32.
if I shell out wkix32, it doesn't do it, but shelling to kix32 does.
so somehow that kix32 resets that "environment" value when ran.
_________________________
!

download KiXnet

Top
#205583 - 2012-08-26 02:21 PM Re: Setoption("WrapATEOL") setting resets when shelling kix32.exe [Re: Lonkero]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Ah, yes... KiXtart by default Always starts out with WrapAtEOL disabled.
So Shelling/Running KIX32 will indeed disabled WrapAtEOL.
WKIX32 of course does not have a console, so it doesn't show the same behaviour.

I'll see if I can add some logic to SHELL/RUN to reset the console state to whatever WrapAtEOL was set to after SHELL/RUN completes.

Thanks for the report!

Ruud

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 561 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

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