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

Exception when completing commands with flags in = format #19930

Open
mattisafur opened this issue Nov 10, 2024 · 0 comments
Open

Exception when completing commands with flags in = format #19930

mattisafur opened this issue Nov 10, 2024 · 0 comments

Comments

@mattisafur
Copy link

mattisafur commented Nov 10, 2024

What Happened?

An exception is thrown when trying to use completion on commands with flags specified in the format --<flag>=<value>. When specifying flags in the --<flag> <value> format completion works.

output looks as follows

$ minikube service list --namespace=somename [tab pressed]__minikube_handle_flag:27: bad math expression: operand expected at end of string
  minikube service list --namespace=some

[tab pressed] signifies the point where completion was called.
The prompt shows again vertically aligned to the line above.

The issue appears to happen on zsh. I also tested the scenario in bash where it worked correctly.
I tested on both "default" and "adam1" prompts, in both cases the new line was aligned.
I tried using multiple flags with one or a few using the = format and didn't see any difference based on the order of the flags (and which one is = formatted).

Tested on Ubuntu running on WSL.

output of minikube version:

minikube version: v1.34.0
commit: 210b148df93a80eb872ecbeb7e35281b3c582c61

Attach the log file

Minikube logs are not included as they don't contain any info relating to completion.

Operating System

Ubuntu

Driver

Docker

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

1 participant