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
Windows Explorer Context Menu Integration not working for folder with square brackets in its name #1374
Comments
I don't think it's related to brackets. |
Yes, I did check it with a folder without brackets, I use the Windows Explorer Context Menu Integration feature all the time. I happened to use it with a folder with brackets today and was surprised that it didn't work. I use default tasks from when you install ConEmu, didn't change anything. |
Don't you have |
No, I don't. As a matter of fact, I just reset all my settings to the defaults, and unregistered the integration then registered it again. The same behavior is observed. |
Try to run |
Ok, just registered |
Than it's not a ConEmu problem. |
When running |
…e folder, if starting task has `/dir %CD%` in the task parameters.
PowerShell must retain the current directory of the parent process. And it does on my PC regardless of brackets in dir name. Try |
Running |
This should be forwarded to Microsoft PowerShell team. |
The last check: did you try to run PowerShell from cmd from T[e]st without ConEmu? |
I just tried it, it does have the same problem. I'm sorry, I didn't know this was a third party issue. |
It's recommended to post your issue in the Microsoft Community forum for advance troubleshooting about your issue on powershell: https://goo.gl/oGbY7a |
Thanks, I opened an issue on their GitHub instead (PowerShell/PowerShell/issues/5752). |
Versions
ConEmu build:
171217 x64
OS version:
Windows 10 Pro 1709 Build 16299.125 x64
Used shell version:
powershell
Problem description
When using the shell integration feature to open ConEmu in a directory that happens to contain "[" or "]" in its name, the shell won't open in the folder and will either default to "C:\Windows\System32\WindowsPowerShell\v1.0" or "C:". I think this might be related to these characters being used by PowerShell for wildcards. Let's say you open PowerShell in the parent directory and try to
cd
in it, you will have to escape the brackets for it to work (cd '.\te[st' -> cd '.\te`[st'). More info here. I'm sorry if I'm missing something or if this was reported in the past, couldn't find it while searching in issues.Steps to reproduce
Actual results
ConEmu opens PowerShell in "C:\Windows\System32\WindowsPowerShell\v1.0"
Expected results
ConEmu opens PowerShell in "C:\T[e]st"
Thanks for looking into it, would love to see it fixed. I hope this isn't a third party problem.
The text was updated successfully, but these errors were encountered: