quicksearch() failed

Things you’d like to miss in the future...
Post Reply
Nolan
Posts: 61
Joined: 27 Nov 2013 05:23

quicksearch() failed

Post 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.

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: quicksearch() failed

Post 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.
Win 10 Pro 64bit

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: quicksearch() failed

Post by admin »

Confirmed, thanks! :tup: Fix comes...

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: quicksearch() failed

Post by Borut »

Thanks Don! :appl: Probably among your very best bug resolving times ever.
Win 10 Pro 64bit

Post Reply