Skip to content

When SSHing into a KubevirtCI, long terminal commands are not wrapped, therefore looking weird #1280

@iholder101

Description

@iholder101

What happened:
When SSHing into a KubevirtCI node, if the command is long enough, it is not warpped by instead being messy overriding the beginning of the command:

> ./cluster-up/ssh.sh node02
Last login: Sun Sep 15 08:35:14 2024 from 192.168.66.2

# This is short enough, looking good
[vagrant@node02 ~]$ find -regex '.*pod.*' -type d -exec cat {}/memory.max \;
[vagrant@node02 ~]$

# Adding `&& ls {}` at the end of the find exec command
{} \;t@node02 ~]$                                                            s \;                                                                          l 
\;agrant@node02 ~]$ find -regex '.*pod.*' -type d -exec cat {}/memory.max &&  \;

This is how it looks like:
image

What you expected to happen:
The command to be wrapped into a new line in a human-readable way.

How to reproduce it (as minimally and precisely as possible):
As explained above. 100% reproducible.

Environment:

  • KubeVirt version (use virtctl version): v1.3 (main)

Metadata

Metadata

Assignees

Labels

good-first-issueIdentifies an issue that has been specifically created or selected for first-time contributors.kind/buglifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions