echo %@index[1234,.,-1] return -21 in new version

May 20, 2008
3,515
4
Elkridge, MD, USA
---- Original Message ----
From: MartinRichter
To: ESFabian@zenge.org
Sent: Thursday, 2011. March 3. 07:48
Subject: [Support-t-2646] echo %@index[1234,.,-1] return -21 in new
version

| Hi!
|
| The new Version 12.1 seems to have a bug.
| If I execute
| echo %@index[1234,.,-1]
|
| I receive the result-21!
|
| How that?

The result I see in the latest builds for V9, V10, V11 and V12 is the correct, indicating in accordance with the documentation that it did not find the period "." character in the string "1234": -1.

Do you possibly have an @INDEX function defined in a plugin, or by the FUNCTION command? Either one would return its own result instead of that of the built-in function!
--
Steve
 
Sep 10, 2009
40
0
The code were I used it is a batch file that is 4 or 5 years old and unchanged.

Totally strange. I repaired the installation and now I have the correct result.

I am sure that I didn't have any plugin or function here.

OK, fixed but reason unknown... :-(
 
May 20, 2008
3,515
4
Elkridge, MD, USA
---- Original Message ----
From: MartinRichter
...
| I repaired the installation and now I have the correct result.
|
| I am sure that I didn't have any plugin or function here.
|
| OK, fixed but reason unknown... :-(

I'd say the reason was a damaged program file (probably takecmd.dll), else "repair" would not have corrected the result.
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
old coot Spurious errors (triggered by "for" construct?) when adding/removing "echo" lines Support 2
fpefpe How to? command echo in title line/bar Support 2
vefatica @EXECSTR clobbers @ECHO ON Support 2
L WAD ECHO. expansion of non-existent env-vars differs from CMD.exe Support 6
D Does TCC improve CMD's implementation of ECHO? Support 6
E My echo full file name to the clipboard fails now. Support 2
MickeyF how to ECHO in opposite colors? Support 12
Joe Caverly Echo message works without the space? Support 3
T Fixed Echo randomly activated in script Support 4
S How to? ^C echo Support 6
vefatica ECHO is very slow Support 9
J How to? Riddle: How to echo > into a file? Support 7
Alexander How to? how can I use Cyrillic characters in the Echo command? Support 8
jadaml Echo unicode characters from UTF-8 Batch files? Support 1
vefatica WAD DO, ECHO, and trailing whitespace Support 3
nickles WAD echo "%PROGRAMFILES(X86)%" Support 16
J Can you redirect output to printer device with echo? Support 1
M How to? Save and then restore "Echo" status Support 2
T Set 1% then Echo 1% Support 9
Roedy ECHO bug Support 4
T How do you echo lines with special characters to file? Support 4
D Help index has GUNZIP Support 0
C WAD @index not working in v16 x64 Support 14
S Documentation HELP Nit - Index - Desktop command Support 0
M @Index not working like I thought it would... Support 2
Phileosophos How to? The help system redirects to the index page Support 4
M "Reawakening" of an @Index issue... Support 8
M Weird @Index function result... Support 7
C jpsoft.com/oldver/index Support 1
S Index entry Support 0
vefatica No help index entry for WINDOW Support 4

Similar threads