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

[BUG] Line wrapping issue typing long commands in bash (part 2) #11789

Open
daniel-santos opened this issue May 3, 2024 · 1 comment
Open

Comments

@daniel-santos
Copy link

daniel-santos commented May 3, 2024

Description

In Docker 26.0.0, I can still get #253 with my pet PS1 prompt.

Without looking at the code, I'm going to guess that something fails to properly determine column when given ANSI escape sequences?

Steps To Reproduce

docker run --rm -itu root debian:stable-slim /bin/bash -l
export PS1='\e]0;\u@\h\a\[\e[49m\]\[\e[01;34m\]/\n\[\e[39m\](\u@\h)\[\e[01;34m\]$\e[0;0m '
echo "Oh freddled gruntbuggly, thy micturations are to me as plurdled gabbleblotchits on a lurgid bee. Groop, I implore thee, my foonting turlingdromes and hooptiously drangle me with crinkly bindlewurdles, or I will rend thee in the gobberwarts with my blurglecruncheon. See if I don't."

Compose Version

Docker Compose version v2.25.0

Docker Environment

Client: Docker Engine - Community
 Version:    26.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.25.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 9
  Running: 3
  Paused: 0
  Stopped: 6
 Images: 109
 Server Version: 26.0.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.7.9-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.41GiB
 Name: nirvana
 ID: f0957f41-bbd5-4aaf-ab50-386325427e63
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Anything else?

No response

@thaJeztah
Copy link
Member

Do you have more details about what you're seeing, and what the expected output would be? (Perhaps a screenshot if that's easier to demonstrate the issue)

Also I notice you're using docker run for the reproducer (which would not be directly related to compose).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants