Page 20 of 41

Re: Scripting Bugs

Posted: 27 Feb 2014 09:25
by admin
What result would you expect?

Re: Scripting Bugs

Posted: 27 Feb 2014 12:35
by TheQwerty
That they would more closely resemble the results shown for the scripts marked "Correct". ;)
[i]Load A;B - Confused > A[/i] wrote:Myself:
Text "Myself:<crlf>" . Self('script') . "<crlf 2>Caller:<crlf>" . Caller('script');

Caller:
Load '*', 'A;B';
[i]Load A;B - Confused > B[/i] wrote:Myself:
B


Caller:
Load A;B - Confused

Re: Scripting Bugs

Posted: 01 Mar 2014 10:16
by admin
I have to postpone this.

Re: Scripting Bugs

Posted: 01 Mar 2014 17:29
by TheQwerty
admin wrote:I have to postpone this.
Hmm... When shall I remind you?

Re: Scripting Bugs

Posted: 01 Mar 2014 17:57
by admin
After 13.90.

Re: Scripting Bugs

Posted: 03 Mar 2014 20:20
by TheQwerty
FormatList only filters by first item when separator is CRLF.

Code: Select all

"FormatList Comparisons"
 Global $G_SEP, $G_RESULT;
 $result = '';

 $G_SEP = ';';      Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
 $G_SEP = '|';      Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>"; 
 $G_SEP = '--';     Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
 $G_SEP = '++';     Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
 $G_SEP = "<crlf>"; Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";

 Text $result;

"_filter"
  Global $G_SEP;
  $list = 'a' . $G_SEP . 'ba' . $G_SEP . 'ac' . $G_SEP . 'ed';
  $filter = 'a*' . $G_SEP . '*d';

  Global $G_RESULT = FormatList($list, 'f', $G_SEP, $filter);

Re: Scripting Bugs

Posted: 12 Mar 2014 08:41
by admin
TheQwerty wrote:FormatList only filters by first item when separator is CRLF.
Confirmed! True for all separators larger than one character (and the characters bing different). Fix comes.

Re: Scripting Bugs

Posted: 12 Mar 2014 08:44
by SkyFrontier
report() seems to be accepting 1 or 0 as parameter, but not |-separated lists.

Re: Scripting Bugs

Posted: 12 Mar 2014 08:52
by LittleBiG
SkyFrontier wrote:report() seems to be accepting 1 or 0 as parameter, but not |-separated lists.
It works here. Did you use full path names?

Re: Scripting Bugs

Posted: 12 Mar 2014 08:57
by SkyFrontier
Yep.

Re: Scripting Bugs

Posted: 12 Mar 2014 09:14
by SkyFrontier

Code: Select all

 step;
   $inp = folderreport("files:{fullname}", "r", , "", , "|");

   $input = trim("$inp", "|");

   $input = report("{custom 2} = {fullname}|", "$input"); // custom 2 won't be caught
   $a = report("{custom 2} = {fullname}|", 0); // correct
beta 0113.

Re: Scripting Bugs

Posted: 12 Mar 2014 22:57
by SkyFrontier

Code: Select all

    $src = "*item*item2*";
    $src = trim("$src", "*"); //problem happens here
    echo "$src";
XY freezes.

beta 0113.

Re: Scripting Bugs

Posted: 13 Mar 2014 09:33
by admin
SkyFrontier wrote:

Code: Select all

    $src = "*item*item2*";
    $src = trim("$src", "*"); //problem happens here
    echo "$src";
XY freezes.

beta 0113.
Indeed! Fixed:

Code: Select all

    ! SC trim: Freeze on passing "*" as charlist. Fixed.
    * SC trim: From now on when passing "*" or "?" as charlist they are 
      automatically treated as verbatim characters, not as wildcards.

Re: Scripting Bugs

Posted: 13 Mar 2014 15:39
by SkyFrontier
Paste this into AB:

Code: Select all

echo gettoken ("<clipboard>", count, "<crlf 
< mind the extra space at the end!
('echo gettoken ("<clipboard>", count, "<crlf ')

Now, enter a digit.
XY freezes.

beta 0113 (and earlier, can't track down).

Re: Scripting Bugs

Posted: 13 Mar 2014 16:51
by admin
Confirmed! You have a good run today...