Skip to content

Shell gets suspended #6240

Closed
Closed

Description

@mxfp0

Describe the bug

Bringing the discussion from Discord to here.

I have set some commands on my PROMPT_COMMAND:

# Prompt
let-env PROMPT_COMMAND = {
    # Zoxide
    # zoxide add -- (shells | where active == true | get path | get 0)

    # Set tmux window title
    # tmux rename-window $"($env.PWD | path basename)"

     # Starship
    ^starship prompt --cmd-duration $env.CMD_DURATION_MS 
}

Whenever I run nushell and type some command like ls or any command, the shell will get suspended.

@WindSoilder tried to reproduce it, with the 3 commands and the issue didn't happen. Also running 1 command and the issue didn't happen.
Somehow, with two commands there looks like the issue happens.
On my machine it happens when I run > 1 command.

How to reproduce

Export PROMPT_COMMAND running at two commands on it.

Expected behavior

Nushell shouldn't get suspended.

Screenshots

asciicast

Configuration

| key                | value                                    |
| ------------------ | ---------------------------------------- |
| version            | 0.66.3                                   |
| branch             | main                                     |
| commit_hash        | 48f1c3a49efc92f702f5e14b5d7b7e3665bdc804 |
| build_os           | macos-aarch64                            |
| build_target       | aarch64-apple-darwin                     |
| rust_version       | rustc 1.60.0 (7737e0b5c 2022-04-04)      |
| rust_channel       | stable-aarch64-apple-darwin              |
| cargo_version      | cargo 1.60.0 (d1fd9fe2c 2022-03-01)      |
| pkg_version        | 0.66.3                                   |
| build_time         | 2022-08-05 23:22:53 +02:00               |
| build_rust_channel | release                                  |
| features           | default, trash, which, zip               |
| installed_plugins  |                                          |

Additional context

The issue doesn't happens if you run on commit 7fc8ff6.
Looks like it started with 376d22e.

Activity

  1. added
    category:bug
    status:investigate
    on Aug 6, 2022
  2. WindSoilder commented on Aug 21, 2022

    @WindSoilder
    Contributor

    This should be resolved by #6273

  3. added this to the v0.68.0 milestone on Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:bugstatus:investigate

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions