Page 1 of 1

quicksearch() failed

Posted: 17 Jan 2018 13:09
by Nolan
XY: v18.60.0102

Assume a file named test.txt is in D:\TEST.

Then this code:

Code: Select all

$a = quicksearch(quote("te" . "st.txt") . " /n", "D:\TEST");
will set $a to an empty string, not D:\TEST\test.txt.

The code works as expected in v18.60.0014.

Re: quicksearch() failed

Posted: 17 Jan 2018 13:50
by Borut
I believe that the problem is with quote and concatenation...

::$a = quote("te" . "st.txt") . " /n"; echo $a;
shows
quote("te""st.txt") /n

::$a = quote("te" . "st.txt"); echo $a;
shows
"test.txt"

I am actually unsure what has to be expected. The first result seems not correct to me. (Recent SCR changes played havoc with one of my scripts, but there it was me previously using dot concatenation incorrectly.) Tested with 18.60.0105.

Re: quicksearch() failed

Posted: 17 Jan 2018 14:05
by admin
Confirmed, thanks! :tup: Fix comes...

Re: quicksearch() failed

Posted: 17 Jan 2018 14:37
by Borut
Thanks Don! :appl: Probably among your very best bug resolving times ever.