-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\clink\clink.bat" inject " unexpected at this moment #571
Comments
Happens to me as well on both W10/W11 x64 in cmd shell. PowerShell seems unaffected. |
There's a superfluous double quote in Before: start "Clink" cmd.exe /s /k ""%~dpnx0" inject %clink_profile_arg%%clink_quiet_arg%" After: start "Clink" cmd.exe /s /k "%~dpnx0" inject %clink_profile_arg%%clink_quiet_arg%" |
@alfablac Thanks for reporting this. I am completely unable to reproduce the problem.
@vii1 Count the quotes carefully. It's not superfluous, and it didn't change. What changed is the line got moved inside a Strangely, I cannot reproduce the problem at all (which is how the problem got published).
@rybnicek Yes, it's expected that PowerShell would be unaffected by anything in Clink, because Clink has nothing to do with PowerShell. |
EDIT: removed; use updated Clink instead. |
You're right. In fact my attempt broke running from the start menu icon. I tried escaping the inner quotes with |
I can't reproduce the problem as described, but I think I see what's causing it. |
I can reproduce a little different error when running Those aren't the same as "running either via clink.bat or the injected cmd", so maybe the described repro steps were phrased ambiguously? I have a fix, though. |
I just installed clink and encountered the same issue. I tried this clink.bat and it works fine now. |
@mkurup27 Don't use that clink.bat. It solves one problem but causes another under other circumstances. v1.6.8 is coming in a few minutes. |
I saw it too and 1.6.8 fixes it, so I'm good. But FYI: I never "run" clink, know about clink.bat or configured anything; I just run the installer and open up a console (or run cmd.exe). So I wonder what the circumstances are: is there something peculiar about my registry or settings:? I don't see anything extraordinary in %HOME%\AppData\Local\clink\clink_settings. |
@ssomers I don't know, and the mystery is annoying me. I was able to reproduce a different variation of the problem, and that enabled me to verify a fix. But I'm completely unable to reproduce the described problem on W10 or W11 (x64 on both). Even setting up AutoRun for Clink doesn't reproduce it. But the underlying problem was I had broken subtle cooperation between And in fact there is still a problem with that: running The part I don't understand is how people were hitting this |
Well, I've done enough cmd to not dare to try doing what clink.bat does. If you run this .bat in a regular directory:
it works as expected. But copy it to c:\Program Files (x86)\clink and the mysterious message appears. It's only the PS Actually, you just need to rename your working directory to so that it contains a closing brace - there's no different interpreter for scripts under c:\Program Files. Well, at least this example doesn't demonstrate that. |
Ah! Mystery solved! Thanks for sharing the observation. There were two problems.
Mine is under |
The clink.bat implementation is juggling many syntax and chipset and performance (speed) details all at once. It's indeed challenging to keep all of them working in proper harmony. |
@chrisant996, thanks for the heads-up. It has been working fine for me but I've installed the latest version anyways. Thanks! |
I just noticed the update and I forgot I reported this. haha Thanks for fixing it @chrisant996 !! |
Latest update clink.1.6.7.87398b breaks clink, had to rollback to clink.1.6.6.87eebc
When running either via clink.bat or the injected cmd, it throws this error on title.
The text was updated successfully, but these errors were encountered: