-
Notifications
You must be signed in to change notification settings - Fork 296
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
Running gsutil command breaks -EditMode Emacs for the rest of the session. #1970
Comments
Hi @lukeschlather are you still facing this problem in the latest versions of PSReadLine and |
This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback. |
It's still happening with PSReadline 2.2.6 and gsutil 5.21. In fact just running gsutil version triggers the issue. |
@lukeschlather are you running the latest version of PowerShell (7.3)? |
Yes. |
Hmm |
I should say this is all the relevant stuff in my profile:
|
@lukeschlather I cannot reproduce the issue on Windows. From my screen GIF below, you can see that I press I'm using 2.3.1-beta1 version of PSReadLine with PSv7.2.11 on Windows 11. Can you please provide detailed repro steps to help us reproduce the issue locally? |
I can reproduce this on two different Windows laptops running Windows 10 Pro. I ran pwsh -noprofile from a cmd prompt and followed your steps and I can repro the issue. I launched a Windows Server 2022 datacenter edition image in Google Cloud: launched powershell
launched a cmd / pwsh -noprofile, did
ctrl-a works normally. |
I created fresh Azure VMs for Windows 10 Pro ( Below are the GIFs showing my steps on both VMs. Windows 10 ProWindows Server 2022I suspect this is very specific to the system environment you are using, maybe another software playing a role in combination with |
I can't repro on an Azure VM with the same specs as you either ( Windows 10 Pro / 22H2 / OS Build 19045.2965 ) However my local laptop with the same OS version reproduces the issue, as does a stock GCP VM running the Google image, which has Windows Server 2022 Datacenter / 21H2 / OS Build 20348.1668 . I compared Google SDK versions and my laptop still reproduces the issue after being updated to the latest version of the gcloud sdk ( 430.0.0 ). I compared the components installed with gcloud components list and I don't see any differences there either. |
That's why I was suspecting maybe something else is playing a role in combination with |
Environment
Steps to reproduce
I am using
Set-PSReadLineOption -EditMode Emacs
. When I run a gsutil command, for examplegsutil ls
, Emacs mode is at least partially broken.Specifically, "ctrl+a" reverts to being select-all rather than "go to beginning of line." I don't think auth is required to trigger the issue, I get it just after doing this:
ctrl+a is broken until I close the powershell window. I assume gsutil is sending some sort of control character? I'm not sure what the simplest way to do a binary analysis of what it's outputting is.
The text was updated successfully, but these errors were encountered: