cli icon indicating copy to clipboard operation
cli copied to clipboard

cf login: cannot delete characters when using git bash

Open fkriegl opened this issue 5 years ago • 3 comments

Please fill out the issue checklist below and provide ALL the requested information.

  • [x] I reviewed open and closed github issues that may be related to my problem.
  • [x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • [x] I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • [x] I am reporting a bug that others will be able to reproduce. -- Well, at least my colleagues could reproduce in their terminal

Describe the bug and the command you saw an issue with Provide details on what you were trying to do (and why). When I try to do a cf login in git-bash and enter my email, it sometimes happens, that I have a typo in it. I would like to correct this, so I press the "delete" key on my keyboard. But this doesn't work. See screenshot: image

What happened Some [D characters appeared in the terminal, but text was not deleted.

Expected behavior I'm able to correct any typos in my email or password, like it works in CMD.

Exact Steps To Reproduce Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. Run cf login in a git bash terminal
  2. Enter an email address and try to delete some characters
  3. See the error

Provide more context

  • platform and shell details: Windows 10 Git Bash (latest version)
  • version of the CLI you are running: latest V7
  • version of the CC API Release you are on: dunno

Notes regarding V6 and V7 CLI support:

  • V6:
    • Minimum supported version of CF Deployment: v7.0.0 (CAPI Release: 1.74.0 (APIs 2.128.0 and 3.63.0))
    • Maximum supported version of CF Deployment: v13.4.0 (CAPI Release: 1.94.0 (APIs 2.149.0 and 3.84.0))
  • V7:
    • Minimum supported version of CF Deployment: v13.5.0 (CAPI Release: 1.95.0 (APIs 2.150.0 and 3.85.0))

CF CLI is the only cli tool I'm having this issue with. Other cli tools work fine in git bash.

Thanks for your reply.

fkriegl avatar Jan 19 '21 15:01 fkriegl

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/176556268

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Jan 19 '21 15:01 cf-gitbot

Hi @fkriegl , thanks for the report. Unfortunately, I believe this is related to a known issue with Git Bash on Windows: https://github.com/cloudfoundry/cli#known-issues

reidmit avatar Jan 19 '21 22:01 reidmit

@reid47 thanks for the quick response. It's not directly listed there, but sounds related (git bash issues). However, does known issue mean, it is on the list of things you consider fixing at some point in time or rather that it won't be fixed at all?

fkriegl avatar Jan 20 '21 08:01 fkriegl