GoogleCloudPlatform/gsutil

gsutil partially breaks PSreadline

lukeschlather opened this issue · 2 comments

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.

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.

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.)