Skip to content

fix: wait for bash prompt before commands #9882

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

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

spikecurtis
Copy link
Contributor

Fixes #9764

Turns out it was bash, not screen that was overriding the prompt. Setting --norc results in a prompt like bash5.1$ .

I've also switched the commands to use \r instead of \r\n as this matches what I've observed from my own terminals. In the output from earlier runs, you can see that \r\n was causing extra prompts to be rendered.

Signed-off-by: Spike Curtis <spike@coder.com>
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

@spikecurtis spikecurtis merged commit c67db6e into main Sep 27, 2023
@spikecurtis spikecurtis deleted the spike/9764-wait-for-prompt branch September 27, 2023 08:26
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: TestWorkspaceProxyWorkspaceApps_Wsconncache/ReconnectingPTY/SignedTokenQueryParameter
2 participants