Skip to content
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

gsutil partially breaks PSreadline #1681

Open
lukeschlather opened this issue Mar 14, 2023 · 2 comments
Open

gsutil partially breaks PSreadline #1681

lukeschlather opened this issue Mar 14, 2023 · 2 comments

Comments

@lukeschlather
Copy link

I use PSReadline configured with the following config to get it to behave more like bash or zsh:

    Set-PSReadLineOption -EditMode Emacs
    Set-PSReadLineKeyHandler -Key 'Ctrl+V' -Function Paste
    Set-PSReadLineKeyHandler -Key 'Ctrl+v' -Function Paste
    Set-PSReadLineKeyHandler -Key 'Ctrl+/' -Function Undo
    Set-PSReadLineKeyHandler -Key 'Ctrl+Backspace' -Function BackwardKillWord
    Set-PSReadLineKeyHandler -Key 'Ctrl+LeftArrow' -Function BackwardWord
    Set-PSReadLineKeyHandler -Key 'Ctrl+RightArrow' -Function ForwardWord

I opened a separate issue with PSreadline that has been ignored (since it is a weird issue, I understand.)

I noticed that on Windows gsutil appears to have a CMD wrapper that I don't see in this repo (and it has a Google copyright header which does not include the Apache license, which is unfortunate since I would like to share it with the PSReadline issue in case anyone sees an obvious reason for the behavior.)

I don't get the issue with gcloud, although gcloud uses a Powershell wrapper (I wouldn't actually suggest switching to a Powershell wrapper, from past experience this could be a breaking change since it will change how arguments are handled when calling from a Powershell script.) In that case it might be better to wait for gcloud to become featureful enough to replace gsutil for all use cases.

@thomasmaclean
Copy link
Contributor

I don't think it's likely that we would introduce a change like this at this stage in gsutil's lifecycle.

FWIW gcloud storage is now able to support just about all of gsutil's functionality except gsutil du, gsutil rsync and gsutil signurl, although these are all in progress in some way shape or form.

@lukeschlather
Copy link
Author

Oh, I think the last time I looked get-iam-policy wasn't implemented. Maybe this is fine. (I'm still a little curious why this is happening but maybe I can just stop using gsutil entirely.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants