Clink completion with set /p (batch windows) #552
-
Hello, I have a very simple bat file that works well in standard cmd, but doesn't work when executed in a clink context: @echo off
set /p test=enter file name using tab completion:
call :PRINT
goto :EOF
:PRINT
echo test is : "%test%"
goto :EOF Idea is to retrieve the name of a file found through completion capability. When I launch script, and use "tab" to complete to any file in the current directory, output is different with clink compared to basic cmd. C:\tmp>c:\tmp\test.bat
enter file name using tab completion:myfile.txt
test is : "myfile.txt" With clink/cmd: C:\tmp>c:\tmp\test.bat
enter file name using tab completion:myfile.txt
test is : "" Should I proceed differently ? Is that a known behavior ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@boka-boka Thanks for reporting this.
When I run the script in a cmd with clink injected, Tab doesn't even do completion; it just inserts raw TAB characters. Once I debug and fix whatever is causing Tab to not work, then I'll be able to debug and fix the problem where the input isn't captured properly. P.S. This used to work as of v1.4.0, so something has regressed since then.
|
Beta Was this translation helpful? Give feedback.
The reason completion didn't work for me was for some reason I configured my CMD windows to disable plain CMD completion.
With completion enabled, then the script works as expected for me.
Can we continue the investigation in issue #553? I have follow-up questions there.