The "source <(kapp completion bash)" command outputs an error message #447
Labels
bug
This issue describes a defect or unexpected behavior
carvel accepted
This issue should be considered for future work and that the triage process has been completed
What steps did you take:
[A clear and concise description steps and any files that can be used to reproduce the problem.]
Added
source <(kapp completion bash)
to my/etc/profile
so it would automatically load.To reproduce the issue, you can simply run
source <(kapp completion bash)
.What happened:
[A small description of the result]
Got the following error message:
This is because the
kapp completion bash
commands outputs aSucceeded
string at the end, which is not a valid command, and when used withsource
, bash tries to execute it.Bash completion does work, though.
What did you expect:
[A description of what was expected]
Anything else you would like to add:
[Additional information that will assist in solving the issue.]
As a workaround, I'm using the following:
This removes the
Succeeded
string from the output, so the error doesn't occur.Same issue also occurs with imgpkg, as I described here:
carvel-dev/imgpkg#342
This issue doesn't occur with ytt, because
ytt completion bash
doesn't output theSucceeded
string.Environment:
kapp --version
):0.46.0
/etc/os-release
): UsingLinux Ubuntu 20.04.4 LTS (Focal Fossa)
andmacOS Monterey 12.2.1
, but this issue occurs on any bash.kubectl version
): IrrelevantVote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: