Code: Select all
TOTALCMD#BAR#DATA
%COMSPEC% /K
(echo %O) && (echo %C2) && (echo %O)
%COMMANDER_EXE%,2
-1
-1
1. In the LEFT file panel select file1.txt and place the cursor on file2.txt - don't select the second file.
2. Click the button.
3. You will now see this unexpected result in the DOS box:
file2
path\file1.txt
file1
4. Do the same in the RIGHT panel
5. You will in stead see the expected result:
file2
path\file1.txt
file2
It does not matter whether I use %C2 or %c2 for the second echo comand, but if I replace %C2 with %C1 or %C or for example %S1 the bug is not present and the two %O's show the same value.
The bug is also present if I replace the two %O's in the first and third echo command with %E, but not if I replace them with %N